Beginners Question . . .?

Discussion in 'CSS' started by acw, Jun 18, 2011.

  1. #1
    I was looking at a website that used the following code.

    HTML page
    <div class="wall">
    <div class="cent">

    1) Looks like the "wall" references the overall parameters of webpage size...WHY IS IT necessary to specify this anyway? Doesn't the BODY TAG take care of this?

    2) Did a Search on "cent" tag and came up with nothing...Anyone know what its used for?


    Appreciate the input...and patience. I searched online for answers and came up with little...

    Hoping someone with expertise can share their knowledge....

    thanks

    ~AC
     
    acw, Jun 18, 2011 IP
  2. whichwayto

    whichwayto Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's a class, so the style is defined by the user. Searching for "cent" won't yield you any results as "cent" could be defined a thousand different ways by a thousand different developers. Google "CSS Class" to read up on the class selector.
     
    whichwayto, Jun 18, 2011 IP
  3. acw

    acw Well-Known Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #3
    ^^Thanks!

    So its a "Class style tag"...so it can be anything i like from the css style sheet.

    If it was an "ID tag"...wouldn't that also apply?

    PS
    (appreciate the info...i'm bangin this stuff into my head at every free moment)
     
    acw, Jun 19, 2011 IP
  4. whichwayto

    whichwayto Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes that's correct. The difference is, ID's are unique and classes are not. So for example if you did:

    <div id="col"></div>
    Code (markup):
    You could only have that div once. However, if you did the same except:

    <div class="col"></div>
    Code (markup):
    You could have that multiple times on the same page.
     
    whichwayto, Jun 19, 2011 IP
  5. Soulstreak100

    Soulstreak100 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the users chooses what they want that to do
     
    Soulstreak100, Jun 19, 2011 IP
  6. acw

    acw Well-Known Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #6
    thanks....!
     
    acw, Jun 21, 2011 IP
  7. acw

    acw Well-Known Member

    Messages:
    157
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #7
    thanks very Much !

     
    acw, Jun 21, 2011 IP
  8. jcyber

    jcyber Active Member

    Messages:
    892
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #8
    all problem in this forum , i think solved................lol
     
    jcyber, Jul 2, 2011 IP