View Full Version : CSS and Html
bolsterboy
10-26-2001, 10:49 AM
Hey all :)
Just wondering if i can add html into CSS tags?
e.g.
mytableInsert { <td bgcolor="#FFFFFF" bordercolor="#0066FF" width="485"><img border="0" src="1.jpg" width="366" height="58"></td>}
That sort of thing
Thanks :)
David
10-26-2001, 10:58 AM
dont think so :)
Here is my style sheet from one of my web sites:
BODY {background: #FFFFFF}
A:link {color: #009999; font-family: Verdana}
A:visited {color: #009999; font-family: Verdana}
A:hover {color: #000000; font-family: Verdana}
td.random {font-family: Verdana}
A.menu:link {color: #FFFFFF; text-decoration: none}
A.menu:visited {color:#FFFFFF; text-decoration: none}
A.menu:hover {color: #000000; text-decoration: none}
A.ch:link {color: #FFFFFF; }
A.ch:visited {color:#FFFFFF; }
A.ch:hover {color: #FF0000; }
A.norm:link {color:#009999;text-decoration: underline;font-size: 10pt}
A.norm:visited {color:#009999;text-decoration: underline;font-size: 10pt}
A.norm:hover {color:#000000;font-size: 10pt}
when you use the tag you then put in a class option e.g.
[PHP]<a href="http://www.hotmail.com" class="ch">hotmail</a> that link would have all of the attributes specified in the a.ch:link section
if there is no class defined e.g a:link then it will apply to every tag
hope this helps
bolsterboy
10-29-2001, 01:43 PM
Thanks that helps,
but is there a way to use CSS to manipulate tables and table values? E.g. Create new cell and/or add cell background?
Thanks
nsr81
10-29-2001, 04:47 PM
A very simplified definition of CSS would be "redefining the existing HTML tags." I know, I know, it's not true anymore, you can do way advance stuff.
As for your question, I think (someone correct me if I'm wrong), you certainly can change the background of a cell, since it is a property of the sell. But you cannot create a new Cell.
bolsterboy
10-30-2001, 09:16 AM
Thanks, that's what i was wondering.
:(
Thanks anyway
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.