Jump to content

quick question...


spyboy1o1

Recommended Posts

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Trade Even Up</title> <style type="text/css"> a:active {color: #990099;} a {text-decoration:none} #navbar { background-image: url(pics/mainlinks.bmp); height: 35px; width: 970px; } #links { margin: 40pt; } </style> </head> <body> <center> <img src="pics/teu-banner.bmp"></center> <center><div id="navbar"> <table> <td><div id="links"><a href="sell.html">Sell</a></td><td><a href="myaccount.html">My Account </a></td><td><a href="help.html">Help </a></td><td><a href="aboutus.html">About Us </a></td> </div></table></div></center>
thats my css/html code... the problem is... when ever i try to put a font tag for the whole links, only the first link does it...where should i put my font tag.. (same happens if i do it in #links with the css)
Link to comment
Share on other sites

font tags are deprecated. Try writing this in your CSS:a {font-family: Arial;color: red;font-size: 12px;}Change as necessary
thanks alot man.. ok now on tables, is there a way to make a border, so that its not like your bgcolor then the border with the hollow space in the middle?
Link to comment
Share on other sites

thanks alot man.. ok now on tables, is there a way to make a border, so that its not like your bgcolor then the border with the hollow space in the middle?
You should study the CSS tutorial http://www.w3schools.com/cssYou can apply it to basically anything.table {border-style: solid;border-width: 2px;border-color: red;/*or all in one declaration: */border: 2px solid red;}
Link to comment
Share on other sites

thanks so much... one last thing... i just put in another table.. and i only put the width and height... and on firefox and ie its in different places(only like 3pxs dif... but still)... but i think it has something to do with my nav bar.. because it doesnt go all the way across the screen. ie is lining the new table up with it, but firefox is putting it all the way to the side.. would it work if i did a float left, then did a position start?

Link to comment
Share on other sites

Well, I don't know exactly what you're trying to do.You can center the table with this CSS:table {margin: 0 auto;text-align: left;}If you use this HTML<div style="text-align: center"><table ......</div>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...