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
Old 09-26-2009, 09:46 PM css warnings
Ultra Talker

Posts: 254
Trades: 0
i am using a backend server which is smarty which does not allow me to have multiple styles sheets and i have to only have 1 css file for all the html pages, also i cannot write

<!-- IF lte IE6
<style type="text/css">

</style>
end if -->

where i can write exclusive code for ie 6 or 7 to make any adjustments to maintain browser consistancy, so i write these small ie fixes in the same style sheet i use for all the pages as


#div{
margin: 0 0 0 10px;
*margin: 0 0 0 9px;
_margin: 0 0 0 8px;

padding: 0 0 0 10px;
*padding: 0 0 0 8px;
_padding: 0 0 0 9px;
}


when i validate my css code from css validator website i get the following warnings

============================================
Parse Error *margin: 3px 0 0 0;
Parse Error : 3px 0 0 0;
Property _padding doesn't exist : 4px 0 0 30px
Property _margin doesn't exist : 1px 0 0 0
============================================

as i do not have an option to use another style sheet nor can i write <style></style> in my situation how can i go about writting code for ie 6 and 7 and sometimes even for firefox and at the same time not get the warnings.

please advice.

thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-27-2009, 05:50 AM Re: css warnings
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If the CMS uses "smarty" templates, just hardcode the conditional comments into the head section template.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-27-2009, 08:04 AM Re: css warnings
Average Talker

Posts: 23
Name: Mary North
Trades: 0
If you want you can try other free templates.
__________________

Please login or register to view this content. Registration is FREE
marynorth21 is offline
Reply With Quote
View Public Profile
 
Old 09-27-2009, 01:15 PM Re: css warnings
StylaStyla's Avatar
Mad Man

Posts: 401
Name: Styla
Location: City of London
Trades: 0
Quote:
Originally Posted by marynorth21 View Post
If you want you can try other free templates.
That's kind of you.
StylaStyla is offline
Reply With Quote
View Public Profile Visit StylaStyla's homepage!
 
Reply     « Reply to css warnings
 

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