0
Welcome Guest! Login
0 items Join Now

Kola's ongoing CSS - XHTML - PHP thread

    • Kola's Avatar
    • Kola
    • Rocketeer
    • Posts: 96
    • Thanks: 0

    Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Hi,

      inspired by how easy it is to use Joomla and SMF and make these sites look great with rocket templates I want to take things further.

      With a wife, daughter, dog, huge mortgage, dead end job etc etc I have too many commitments to got to uni or collage or whatever.

      I find the next best thing to learning from a classroom environmentis by video. So armed with £200 worth DVD's from Lynda.com I embark on a course of my own learning CSS then XHTML followed by PHP.

      I have covered the first 3 chapters of the CSS vid and am enjoying it but its tough going. I no doubt will have many questions. Instead of posting many thread on here and cluttering up the board I'm going to keep this one running (If no one minds) and basically blog my journey.

      Keep in mind I am a novice and self taught at that so I may not understand too much jargon too soon. However I make up for this with motivation and willingness to learn along with determination to get a good grounding for my £200 worth.
      Alot of my starter questions may seem daft to web design pros but im afraid I wasn't born with web design knowledge :P

      Ok firstly, an (X)HTML Q.

      Whats the diff between an ID tag and a class tag?

      isn't the class tag better as you can call it the same thing throughout where as the div tags names have to be unique per document? Doesn't this make the ID tag superior? How is the Div tag different?
    • Last Edit: 17 years 4 months ago by Kola.
    • SCIENTIFIC FACT - Santa's sleigh, weighed down with all those presents and traveling at supersonic speed to get to every households in one night, would encounter such massive air resistance that the entire contraption would burst into flames and be vaporised within 4.26 thousandths of a second :]
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Class tags let you apply styles, ID tags provide a name in the DOM (Document Object Model) that can be used (by JavaScript, for instance) for other purposes.
    • www.gofftech.com Web Design
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Eh? :D

      Bottom line:

      Use an ID wherever you only need to style a single element.
      Use classes where you need to style many elements under the same class.

      Don't forget you can also use both on a single element too...
    • Toolbox Digital | Dribbble | Forrst
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Kola's Avatar
    • Kola
    • Rocketeer
    • Posts: 96
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • @ Mathew - Thanks for the link, lots of info on there - Bookmarked

      @ Dan -
      Use an ID wherever you only need to style a single element.
      Use classes where you need to style many elements under the same class.

      Don't forget you can also use both on a single element too...

      This was sort of my point so I must have understood it correctly. Why use or even bother to learn id tags though if a class tag can style single OR multiple elements? isn't this just complicating things for the sake of it?

      Its good to know they are one and the same. Ive spent all day trying to work out what the difference was ::)


      Thanks :)
    • SCIENTIFIC FACT - Santa's sleigh, weighed down with all those presents and traveling at supersonic speed to get to every households in one night, would encounter such massive air resistance that the entire contraption would burst into flames and be vaporised within 4.26 thousandths of a second :]
  • Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • I don't know if it is complicating things but there is a good use for this. You can use a class to make sure all your elements of that class have a common look and feel. You can then you an ID to make that element stand out differently but still retain some commonality.
    • Kola's Avatar
    • Kola
    • Rocketeer
    • Posts: 96
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • No that doesn't complicate things Mark it makes sense. Thing is why not use a separate -class tag to make the certain element stand out. Or do you mean use and id tag as well as the class tag on the same element? Can you even do that?
    • SCIENTIFIC FACT - Santa's sleigh, weighed down with all those presents and traveling at supersonic speed to get to every households in one night, would encounter such massive air resistance that the entire contraption would burst into flames and be vaporised within 4.26 thousandths of a second :]
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Kola wrote:
      Or do you mean use and id tag as well as the class tag on the same element? Can you even do that?

      Yes you can do exactly that. Everything can have an ID and a class.
    • Toolbox Digital | Dribbble | Forrst
    • Kola's Avatar
    • Kola
    • Rocketeer
    • Posts: 96
    • Thanks: 0

    Re: Kola's ongoing CSS - XHTML - PHP thread

    Posted 17 years 4 months ago
    • Ah right - now ive got it. Thanks fellas. (thumbs up!!)

      EDIT:-

      With regards to any other web design newbies ever reading this thread.......

      I have decided to put a temporary hold on the the complicated and bloated Lynda.com CSS web design video that cost me £75 that no doubt makes perfect sense to a web designer but then what use is that?

      I have spent another day attempting another 7 min video and getting no where fast. Have I given up all ready learning web design??

      Hell no!!

      After scouring the net I found a very cheap and good beginners web video by a fella called Stephan mischook. He seems to be more dreamweaver than Joomlas but hey, CSS and (X)HTML are the same.

      He offers a superb beginners guide to HTML and CSS. His style is so relaxed and slow paced I think he smokes pot. Seriously, if like me you are an absolute novice give his course a try at only £10.

      After I get up to speed with this I will get the Lynda.com disk out again and hope some of it makes the slightest bit sense. Spending 10 hours a day trying to figure out and note a 7 minute video is just not productive for me at all. A waste of a day off really.

      Give his vid a go if your brand new

      www.killersites.com/videoTutorials/Tutor...Design/webDesign.jsp
    • Last Edit: 17 years 4 months ago by Kola.
    • SCIENTIFIC FACT - Santa's sleigh, weighed down with all those presents and traveling at supersonic speed to get to every households in one night, would encounter such massive air resistance that the entire contraption would burst into flames and be vaporised within 4.26 thousandths of a second :]

Time to create page: 0.073 seconds