The majority of forums are now only available as archives, which means posting/editing is disabled.
The Anything and Everything forum is still open.
The Anything and Everything forum is still open.
CSS Background
|
|||
|
Rank: ? (172)
Member #: 8641 |
I went and ran my site layout through the W3C Validator and got alot of errors because of my tables. I've found solutions to most of the problems but I am stuck on fixing the background problem.
An example of a table in my layout is as follows: Code:
How can I set this up using CSS? Just a note all my tables have different backgrounds this is just one table from my layout.
-TwiztedFake-
|
||
|
|||
|
|||
|
Rank: ? (4827)
Member #: 3416 |
change background="graphics/top.gif" to style="background-image: url(graphics/top.gif);"
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
|||
|
|||
|
Rank: ? (172)
Member #: 8641 |
I used the style tag you suggested and it fixed the problem.
Is there a way to do this using an external style sheet? Anyways I'm sure I'll have more questions as I go through the site. Never thought making it all valid html 4.01 could be so much work but should be worth it in the future. Actually its quite surprising on how much about html I really don't know even after working with for the last 2 years. LOL Thanks for the Help! ~*~Peace~*~
-TwiztedFake-
|
||
|
|||
|
|||
|
Rank: ? (1045)
Member #: 2150 |
css reference on w3c
Look through this site and you'll see a lot of thing to use in a external stylesheet. for background this would be something like: Code:
but remember to put class="someclassname" in the <table> tag or it won't work.
"Your coding is godly, Mav. Stop watching porn and do something with your life!" -.- (Farley)
|
||
|
|||
|
|||
|
Rank: ? (645)
Member #: 62 |
this hasnt let me down. dont know if it will help you, but good luck on what your trying to do.
Code:
Because you can't starve us out and you can't make us run, Cause when them ole boy raised on shotgun. We say grace and we say ma'am, If you ain't into that we don't give a damn
|
||
|
|||
|
|||
|
Rank: ? (1045)
Member #: 2150 |
To Other: Those scrollbar colors are not valid css, only internet explorer can do this. If you want valid html 4.01 and valid css, don't use them.
"Your coding is godly, Mav. Stop watching porn and do something with your life!" -.- (Farley)
|
||
|
|||
|
|||
|
Rank: ? (187)
Member #: 8216 |
and I'm really not keen on all the tags and attributes in CAPS... I suspect that wont validate
|
||
|
|||
|
|||
|
Rank: ? (4827)
Member #: 3416 |
css might validate in caps, but xhtml will NOT validate if you use caps for tags (like STYLE). also it might not display correctly
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
||
|
Please login or register to post a reply.
