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.

lapillus: (Default)

[personal profile] lapillus 2011-04-25 03:59 am (UTC)(link)
LOL! That would require me generating content to get folks to actually look at my journal ;-)

I'm actually more curious about general spread since I suspect that any style designing I do is as likely to be for general use as it is to be for my own - I'm really pretty happy with what I have and the only thing I'm likely to tweak for myself is not going to be a big issue (giving the content a fixed width) when it comes to browser implementation.
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. =/
fulminata: (drink - vintage)

[personal profile] fulminata 2011-04-25 03:10 pm (UTC)(link)
In theory, you could just make a header image and then code the rest. Like:

<*div id="header">
<*div id="content">CONTENT HERE
<*div id="footer">


(Take out the *) Then CSS can do the rest. That's the beauty of it. :D
Edited 2011-04-25 15:11 (UTC)

[personal profile] ex_pippin880 2011-04-25 03:27 pm (UTC)(link)
:O

arcane witchcraft, surely!
fulminata: (flower - sun petals)

[personal profile] fulminata 2011-04-25 03:31 pm (UTC)(link)
Tis but simple magic, m'dear. ;p
baggyeyes: Bugs Bunny and the Bull (Default)

[personal profile] baggyeyes 2011-04-25 03:52 pm (UTC)(link)
Yeah, even Microsoft is trying to kill IE6.
dchan: Stick figure holding a flask and a test tube, with text: Stand back, I'm going to try SCIENCE (going to try science)

[personal profile] dchan 2011-04-25 06:22 pm (UTC)(link)
Ooh, you can actually (temporarily) edit on the fly using the browser development tools! I've used them quite a bit before to view code/see where it is on the page, but I was never able to figure out how to change things around to test different options before. (Much more useful than having to upload a whole new css file every time I want to tinker around with the style!)


Also poked around with last weeks lesson too....I did not realize you could change the background image/header through the wizard! I've always completely skipped the wizard in the past and just skipped to posting custom css files when I wanted to make changes, lol.
dchan: A cat making a :D (excited) face. (kitty :D face)

[personal profile] dchan 2011-04-25 06:46 pm (UTC)(link)
I've been using it to tinker around with the options on my Plurk page. Plurk has about 50 million different classes and IDs so the feature that highlights the different CSS boxes/blocks (or whatever they are called) is especially invaluable there. Now to figure out why the rounded corners on the layout aren't working....I downloaded a rather pretty layout from somewhere but the custom css that came along with it is a bit of a mess, let me tell you. I'm relatively certain that at least half of it is redundant. There's a reason it's called Cascading Style Sheets--no need to keep redefining variables as the same value for all of the daughter classes of something! >_o
vilakins: Vila dozing off at the teleport controls (alert)

[personal profile] vilakins 2011-04-25 09:19 pm (UTC)(link)
I just tried it and it worked, so it must have been another layout, sorry. I can't remember which and it was probably reported by someone else. Maybe it was a bug at the time and was fixed.
adalger: Earthrise as seen from the moon, captured on camera by the crew of Apollo 16 (Default)

[personal profile] adalger 2011-04-26 03:50 am (UTC)(link)
"* Decorate the title"


This is a little vague. Do you mean "make it look pretty" or something specific like make it [underlined|italic|strikethrough]?
melyanna: (Failure)

[personal profile] melyanna 2011-04-26 01:32 pm (UTC)(link)
I must not have read the details here on the exercises all that closely. I was starting to worry that I'd missed something really obvious with centering the large image. Still not sure I did it the best way, but it's centered, at least.
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

Page 2 of 3