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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.