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



Reply
Bypassing deafult CSS
Old 03-03-2008, 01:50 PM Bypassing deafult CSS
Novice Talker

Posts: 11
Trades: 0
My <table>s, <tr>s, <td>s are controlled by a default CSS that eliminates border, cellpadding, cellspacing etc.

I need to recode one complex page and I would like to see every detail.
Is it possible to bypass the default CSS, temporarily, just for that page?

Please advise. Thanks in advance.

WConti
contiw is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-03-2008, 02:01 PM Re: Bypassing deafult CSS
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
You would like to enable the eliminated elements on one specific page?

If so, copy everything inside your main css, and paste into a new file, replacing the trs tds etc.

And then with your specific page change your css link to the new file.

eg

Code:
<link rel="stylesheet" type="text/css" href="main.css">
would become

Code:
<link rel="stylesheet" type="text/css" href="tables.css">
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 03-03-2008, 02:04 PM Re: Bypassing deafult CSS
Novice Talker

Posts: 11
Trades: 0
ThankYou Gilligan. Makes sense. And the "plain" css is always available for me to use. Have a nice day.
WConti
contiw is offline
Reply With Quote
View Public Profile
 
Old 03-04-2008, 11:46 AM Re: Bypassing deafult CSS
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
eNJOY
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 03-04-2008, 07:57 PM Re: Bypassing deafult CSS
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
A better approach is to add class names to the elements on that one page.

<table class="class-name">

Then you'd add a new style to your css file

table.class-name {your styles here}

Using the classes gives you the opportunity to use both with and without the class styles on the same page and doesn't require your visitors to download another stylesheet. Probably not a huge amount to download, but why slow up the page at all.

Also with two stylesheets if you make a change to something like an h1 you'll need to change it in both css files instead of just the one. Trivial if you only have two css files, but if you consistently use a new css file each time you need something styled differently on one page you will eventually forget to update one.

One other option is to add the css into the head of the html page. The css there will override the css in the external file. I think it's best to have your css in an external file, but adding css to the head of the document is a quick way to style something for a specific page.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Bypassing deafult CSS
 

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 0.36198 seconds with 12 queries