SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

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

    The "all" property

    The "all" property looks interesting as I know this question has been asked numerous times over the years.

    e.g."How can I drop an element/widget into my page and not have it inherit any styles that might break it".

    It would seem that you could then use pre-made modular structures and just drop them into pages as required. Of course it seems that if you built the whole page like that then you couldn't make any global changes easily.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Hm, Interesting, although I wonder if it's just another one of those innovations to account for bad web design practices.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Hm, Interesting, although I wonder if it's just another one of those innovations to account for bad web design practices.
    I think its there to address the problem of inserting pre-made widgets into existing pages rather than something the author of the page itself would need to worry about but of course it would be open to abuse like many other properties.

    (I actually needed the opposite of this the other day as a client had a CMS that allowed users to enter html but didn't want them adding their own styles which the editor allowed (and which were applied inline). I had to set a load of !important rules up to try and catch anything the user may have entered (assuming they didn't know about !important of course). It was easier than the client changing the CMS which would have been the correct solution.)

  4. #4
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,881
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    (I actually needed the opposite of this the other day as a client had a CMS that allowed users to enter html but didn't want them adding their own styles which the editor allowed (and which were applied inline). I had to set a load of !important rules up to try and catch anything the user may have entered (assuming they didn't know about !important of course). It was easier than the client changing the CMS which would have been the correct solution.)
    Similalry, I have added a load of extra styling to my Twitter feed where it is embedded on my website to improve the look of it and integrate it better into the overall design – I don't want the peeps at Twitter to then be able to override thsoe styles!


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
  •