FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

tables to css

 


linexpert
hi
my site currently uses html and simple tables. How do i turn this into css.
The site is http://tech.frih.net/ticalc/

thanks
coreymanshack
you name your table with the id attribute, then here is how your example csss would look...

Code:
#tableone {
background-color: #ffffff;
width: 70px;
height: 40px;
}
#tabledata {
width: 40px;
}



do you get it? all you have to do it set the tag with an id such as

Code:
<td id="tabledata">asdsadf</td>


Then you can set your css attributes for that tag, if you ever get stuck on the attributes just do a google search. That's what has always helped me! Good Luck!
traviantr
there is css codes in your site's resourses..

Code:

.style2 {font-size: 36px}
.style6 {font-size: 12px}
.style7 {
   font-size: 13px;
   font-family: "Times New Roman", Times, serif;
}
.style9 {font-family: "Times New Roman", Times, serif}
.style14 {font-size: 10px}
.style15 {font-family: "Courier New", Courier, monospace}


You can save this like style.css in your folder. You can add this code between head tags:

Code:
<link rel="stylesheet" type="text/css" href="style.css" />


then it' ok Wink .. You can add some thing like coreymanshack said...
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.