Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Closed Thread
remove css formatting from certain tags
Old 10-27-2008, 10:29 AM remove css formatting from certain tags
Average Talker

Posts: 27
Trades: 0
hi all,

on my site i have set all my common formatting tags like h1, h2, p, ol, ul to how i would like them to displayed on my site. ie. h1 is a certain size and colour etc

however for a section of my site (such as everything within a set div on a certain page) i would like to be able to remove all of this css formatting of these tags and for them to go back to how the browser would see them as if they had never been formatted by css.

is there an easy way of this such as a simple tag that will remove all that formatting for these elements?

thanks
gavrd1 is offline
View Public Profile
 
 
Register now for full access!
Old 10-27-2008, 11:04 AM Re: remove css formatting from certain tags
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
No, and even if there was, the browser defaults are different on some browsers, so that is probably not what you want anyway. Just wrap them in a class on that page, and set the font sizes, families, colors, whatever you need, etc, however you like, to override your normal settings within that class.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
View Public Profile Visit wayfarer07's homepage!
 
Old 10-27-2008, 11:28 AM Re: remove css formatting from certain tags
Average Talker

Posts: 27
Trades: 0
thanks, the reason being is that i have it set up so users can update their site using the fckeditor integrated into my cms so admin users can add pieces of formatted text like news articles etc.

obviously, at the minute if they format it as a heading tag then that will appear with the same formatting as a my fancier heading tag of the same!

i will have a look through the fckeditor docs to see if there is anything in there with regards to overriding the styles.
gavrd1 is offline
View Public Profile
 
Old 10-27-2008, 11:44 AM Re: remove css formatting from certain tags
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Don't include the default stylesheet for those pages.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 11-04-2008, 09:15 AM Re: remove css formatting from certain tags
Novice Talker

Posts: 6
Trades: 0
Wrap a div with an ID around the html elements.

then in your css

#idname h1,#idname h2,#idname h3,#idname h4,#idname h5
{
margin:0;padding:0; etc....
}
vidal is offline
View Public Profile
 
Closed Thread     « Reply to remove css formatting from certain tags
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.04746 seconds with 12 queries