foxfirefey: A fox colored like flame over an ornately framed globe (Default)
foxfirefey ([personal profile] foxfirefey) wrote in [community profile] style_system2011-04-23 11:29 pm
Entry tags:

HTML and CSS overview; Examining with browser developer tools

Class Notes

For people who participated in last week's exercises, thank you so much. Anybody who discovered options not working the way they should be got 10 DW points.

You can always look at the syllabus to see where we are. Our previous class was on S2 Background and the Customization Wizard.

Reading for the Week

This week's class is a day late, because I've been working on filling out the following reading aimed at people who need to learn the basics of CSS and HTML:

They are still not complete yet, in my opinion, and I'll be completing them as people start asking questions and needing guidance. I hope that we can work together on this, since I've never taught HTML/CSS from scratch before--if you have something you feel should be added, feel free to edit the wiki pages. Because so many of you are new to this, this portion of the class will span two weeks (as stated last week). This week, let's concentrate on getting a grasp on the basics of HTML and simpler CSS declarations, for those who don't know it yet. Next week, we'll go more in depth on topics that people ask about or need this week, and possibly throw in some bonus teachings on interesting new CSS3 rules.

Exercises

Okay, for those of you who need a little crash course in HTML and CSS, CSS Lesson 1. It's a little bundle of files. When you unzip the folder, you'll find:

  • examples.html -- The HTML file to work with.
  • css/examples.css -- Edit this file in order to change the styling in the HTML file.
  • exercises.txt -- Has a list of exercises for people new to CSS to try. Note: centering the bigger image might be a little tricky if you're new to CSS, so don't be ashamed. I'll give solutions (and new exercises) next week.

If you are already pretty proficient with HTML and CSS, please get some practice with Browser Developing Tools if you don't know how to use them! Play around with exploring your journal and its current HTML/CSS. Test making out on-the-fly changes.

[personal profile] seleneheart has also prepared something very nice: an annotated version of the CSS for two different layout themes.

tyger: A surskit with a heart above it.  Text: chuu! (pokémon - surskit)

[personal profile] tyger 2011-04-24 09:48 am (UTC)(link)
....I haven't even started yet, but I have to say. You get my eternal gratitude for pointing out the Safari developer tools. *_______*
I don't have to switch to Firefox just when I want to check what class something's in! aljdgl;jea;l <3<3<3<3<3
tyger: Axel looking off over the sunset (Axel - into the distance)

[personal profile] tyger 2011-04-24 11:28 pm (UTC)(link)
...argh. I can't make the developer tools actually edit anything. :( I tried double-clicking on the left side, but all it did was let you change variables that're there - if I tabbed to try and make a new one all it did was highlight. And if I tried to double-click into anything on the left all it did was select the term. And using the gear on the left didn't do anything, I'd input my CSS and hit enter, and it'd just disappear. I also tried putting background-color rule into the console directly, but I just get 'SyntaxError: Parse error'.

I'm probably missing something really simple, but, uh. /o\
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2011-04-25 01:36 pm (UTC)(link)
Hmmmm, how odd! Let me see:

I tried double-clicking on the left side, but all it did was let you change variables that're there - if I tabbed to try and make a new one all it did was highlight
And if I tried to double-click into anything on the left all it did was select the term. And using the gear on the left didn't do anything, I'd input my CSS and hit enter, and it'd just disappear

I'm not quite sure what's going on! Just to make sure we're looking at the same thing, are you trying to edit in the styles section as visible in this screenshot? (the right-hand side/styles sidebar zoomed in for emphasis)

I also tried putting background-color rule into the console directly, but I just get 'SyntaxError: Parse error'.
Ahh, that is because the console expects JavaScript (behavior) rather than CSS (styling and appearance). For the purposes of these lessons, you can ignore that part of the developer tools!
tyger: Roxas, from Deep Dive.  Text: 戦う (Roxas - 戦う)

[personal profile] tyger 2011-04-25 01:44 pm (UTC)(link)
Yup, that's it!

Yay, at least that isn't broken! *facedesk*
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2011-04-25 01:46 pm (UTC)(link)
Hmmm okay! Second step: does it that happen on all pages, or just specific ones?
tyger: Eraqus' Avatar Kingdom chibi. Text: Eraqus (Master Eraqus - chibi)

[personal profile] tyger 2011-04-25 02:11 pm (UTC)(link)
...good point! *checks several sites*
...hey! Managed to get the CSS on the right to edit! And adding new things on the right with tabs worked! ...I have no idea why they weren't working last night. I'm actually much more tired now. Oo;
Still can't get adding new things with the gear to work, though. =/
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2011-04-27 04:32 am (UTC)(link)
Ooh glad that worked!

And I had a sudden thought about adding new elements! Can you try doing the following steps exactly:

1) Open up the web inspector
2) Click on the gear on the upper right in the Styles section of the sidebar
3) You will get a textbox in a bar with a blue background, with the name of the element / selector (so p, div, #canvas, something like that)
4) Press "tab" to confirm that this is the right element you want to add CSS for
5) Type in the new rule: "background-color: red;" or something like that

I was clicking around and I noticed it was way too easy to skip steps 3-4, and go straight to #5 from #2, which just makes the rule disappear without being applied, since it's not a selector, so I wonder if that's what's happening here!
tyger: Sora's fist-in-the-air sprite from Re:coded.  Text: Hell yeah! (Sora - hell yeah!)

[personal profile] tyger 2011-04-27 04:42 am (UTC)(link)
AHA! THAT IS IT EXACTLY! :D
THANK YOU SO MUCH! \o/
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2011-04-27 04:44 am (UTC)(link)
Hooray! \o/
tyger: Riku's grinning sprite from Re:coded, mickey stamp next to him. (MICKEY STAMP OF WIN)

[personal profile] tyger 2011-04-26 02:34 pm (UTC)(link)
:D!!!!!

Okay okay so using the developer tool and this tute - which had entirely the wrong classes for my layout so I had to FIND THE ONES THAT ACTUALLY WORK MYSELF - and my fumbling knowledge of CSS I managed to put my moodtheme on the left!
It took a lot of guessing, but I did it! :D:D:D:D
*so happy~*

..still haven't done the example exercise, but, uh. I did a thing! That I didn't know I could do before! (I was using the exercise as more a 'learn the developer tools' thing and yeah uh that didn't work. ¬¬;) :D SO HAPPY! Have been meaning to do this for MONTHS but I thought it'd take me hours of swearing but it took me maybe twenty minutes! *dances* :D
tyger: Beat, hand on his hat and laughing. (Beat - Bwahahaha)

[personal profile] tyger 2011-04-26 10:37 pm (UTC)(link)
*dancedancedance*
It's still kind of hard, at least for me - if I highlight the moodtheme-picture in the development tools it tells me it's div.metadata.bottom-metadata ul li img, whereas what actually worked to move it was just .metadata ul li img, but still! :D I managed to get it, which is about 1000x more than I usually can do things!

*nodnod* Was still handy to know what I should be coding once I found the right classes! :D