WordPress.org

Ready to get started?Download WordPress

Forums

"body" vs. "rap" (9 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    Is there a need to use the "rap" id? Can't this information just be contained in the "body" division?

  2. MathiasBynens
    Member
    Posted 10 years ago #

    Not everything. If you want to have a different background in the rap, for example.
    MaThIbUs

  3. WillM
    Member
    Posted 10 years ago #

    What always puzzled me is why it was called 'rap' and not 'wrap'.

  4. OperaManiac
    Member
    Posted 10 years ago #

    weird considering the developers is a jazz fan and not a rap fan...
    _____________
    The sig you hate!
    Why Opera? 1 2 3 4

  5. NuclearMoose
    Member
    Posted 10 years ago #

    @Frolic,
    < body > is an HTML element while "rap" is simply a CSS container which is used to "hold" all of the page goodies. It's a common practise in CSS to use such a thing. It's not absolutely necessary, but it can be useful.
    @WillM & Mathibus,
    Rename "rap" to anything you want. :)

  6. ByteWarrior
    Member
    Posted 10 years ago #

    I think you need the "rap" to center your content (if your weblog has a fixed width for example).

  7. trakwebster
    Member
    Posted 10 years ago #

    I agree that "wrap" would have been immediately clearer (or "container"), but as it is it's OK, and changing it would probably break some old layouts come next upgrade. The smart thing would be to add a comment making it clear. Depending upon the intelligence of a human is always a mistake; even if the human is yourself, somewhere later in time!
    However, whether it's called rap or wrap or bigboogaloo, it does no harm being there, and permits several useful CSS layout and coloring ideas to be expressed with tweaks to the stylesheet only. This is a good thing, and it does no harm being there when it's not being used.

  8. eleutheria
    Member
    Posted 10 years ago #

    Besides, it's nothing compared to "$cats" and "$dogs".

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    Ok, now I understand it's purpose. It's taking me a while to wrap my head around the concept of CSS, but I think I'm beginning to understand. All style info should be in the style sheet. Now I think I'll have to rebuild my template to be more compliant.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.