Jump to content

is this the best way of using css?


brown2005

Recommended Posts

i was wondering if the below was the best way of using css as i usually do my layouts with tables, so im just learning how to layout with css

 

<style>

body
{
margin: 0px;  

}

#header
{

		font-family: Arial, Helvetica, sans-serif;
		font-size: 11px;
		font-weight: bold;
		color: #627c10;
		text-decoration: none;

		margin-top: 10px;		
		margin-bottom: 10px;

}

#image
{

		margin-bottom: 5px;

}

#container
{
width: 100%;
margin: 0px;
background-color: #fff;
color: #333;
}

#content
{
  
float: left;

width: 850px;

}

#sponsors
{
  
width: 150px;

text-align: center;

border-left: 1px solid #999999;

line-height: 100%;

}

#sponsors h5
{
  
color: #FF0000;

}

#sponsors image
{
  
height: 45px;
width: 100px;
border: 0px;

}

</style>

<body id="container">

<div id="content">
	left
</div>

<div id="sponsors">

    	<div id="header">Random Images</div>

    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>
    	<div id="image"><img src='1.JPG'></div>												    	    	
					    	
</div>

</body>

Link to comment
https://forums.phpfreaks.com/topic/41877-is-this-the-best-way-of-using-css/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.