SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selecting body tag from div class?

    Hi there,

    I have the following HTML:

    PHP Code:
    <body>
    <
    div class="all">text</div>
    </
    body
    Is it possible to give the body tag a style based on the <div> with a class of .all?

    I want to do this only with CSS.

    Thanks

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,274
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    No it's not possible yet in CSS.

    It is proposed in Editors draft selectors level 4 which has just been released a few weeks ago. So you will be good to go in a few years time.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •