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 02-23-2009, 03:28 PM Is this "CSS LEGAL"?
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
At my job we offer 3rd party services which use a clients website template, but our content. 80-90% of our time is wasted trying to correct CSS issues that occur after we place our code within their template. I found a way to 99.9% of the time not mess with their template code, and only apply CSS to our code, but i'm not sure if it is CSS compliant. Can someone help me out, i'll explain below.

Typically i will save a clkients website to the desktop, then find out where the main content area is within the code, split the file into a header and footer, then we use includes to pull our code in between.

I found that:

if at the end of the header i put something like <div id="Our_Content">

then at the begining of the footer we put </div>

then in OUR stylesheet i add #Our_Content in front of all CSS declarations

it will not touch the clients template, only our content.


The reason i am wondering about this is because sometime i will end up with a weird css line like:

#Our_Content body #someotherID .someclassName td{}
The_Anomaly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-23-2009, 04:09 PM Re: Is this "CSS LEGAL"?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
So you're wrapping a <div> around the body?? Because that's what your CSS line: #Our_Content body #someotherID .someclassName td{} seems to indicate. That is definitely not "legal" HTML, if so, and should be avoided. It you're not doing this, it sounds like a reasonable strategy to me.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 02-23-2009, 04:29 PM Re: Is this "CSS LEGAL"?
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
bad example, we're not wrapping a div around the body. The line would read #Our_Content #someotherID .someclassName td{}
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 02-23-2009, 04:33 PM Re: Is this "CSS LEGAL"?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
nothing wrong with that.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 02-23-2009, 05:52 PM Re: Is this "CSS LEGAL"?
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
ok, i didnt think there was just wanted to double check. thanks!
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is this "CSS LEGAL"?
 

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