SitePoint Sponsor |
|
User Tag List
Results 1 to 9 of 9
Thread: html block css
-
Jul 22, 2006, 13:22 #1
- Join Date
- Jul 2006
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
html block css
Is there a way to block css being used for a certain part of html on a page.
mary
-
Jul 22, 2006, 13:27 #2
- Join Date
- Feb 2003
- Location
- Slave I
- Posts
- 23,424
- Mentioned
- 2 Post(s)
- Tagged
- 1 Thread(s)
Use a DIV:
<div id="whatever">
Put content here.
</div>
-
Jul 23, 2006, 05:21 #3
- Join Date
- Oct 2004
- Location
- NSW Australia
- Posts
- 3,564
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'd love to know what the question actually means ;-)
NadiaUnique CSS Templates by Nadia
Dreamweaver: Tutorials.Templates.CSS Designs
SitePoint Books |My Fireworks Tutorials 1 2
Follow me on Twitter | Community Team Advisor
-
Jul 23, 2006, 09:13 #4
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi Mary, and welcome to SitePoint!
No, there is no way to block or disable CSS for parts of a page. There are two ways to work around it, though:
- Enclose the part in a DIV with an id attribute, as stymiee said. Then apply CSS rules to it that cancels the rules you wish not to apply.
- Use classes and IDs for everything but the special part, and apply CSS rules only to those classes and IDs.
Birnam wood is come to Dunsinane
-
Jul 23, 2006, 10:00 #5
Yea, or if you applied body styles in css, put the stuff you don't want formatted in css in a special div, which you choose the defaults or the look of that div.
HTMLGuy
-
Jul 24, 2006, 12:21 #6
- Join Date
- Jul 2006
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks +
Thanks for your reply. And Thanks to all other replies.
Is there an easy way to set css defaults or do you have to list all attributes and set them.
mary
Originally Posted by htmlguy
-
Jul 24, 2006, 12:23 #7
- Join Date
- Jul 2006
- Posts
- 3
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thank you
mary
Originally Posted by AutisticCuckoo
-
Jul 24, 2006, 12:54 #8
Well for browser defaults just do this:
body (or #divid) {
}
Basically that makes no changes to the default of the body, or the browser.
HTMLGuy
-
Jul 24, 2006, 22:37 #9
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by catchit2000
Off Topic:
BTW, it's called properties, not 'attributes' in CSS.Birnam wood is come to Dunsinane
Bookmarks