FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


center seperated from backround





Eyre
i want to do something like this:
Quote:
http://www.crankeye.com


where the center is like seperated from the backround. I don't know how to do this. Can someone help?
Jiltedcitizen
You mean the content is separated? Just give the background a color or image and give your table or div another color. best to use css to accomplish both. And you can even right click, select view source on that web page and see how they did it.
Naif
Assign a width of 90% (more or less, your choice) to a table and center align it.

Example:

Code:


<body bgcolor="gray" text="white">

<table width=85% ALIGN=CENTER bgcolor=green>
<tr>
<td>
   Contents.....
</td>
</tr>
</table>

</body>

supjapscrapper
Eyre wrote:
i want to do something like this:
Quote:
http://www.crankeye.com


where the center is like seperated from the backround. I don't know how to do this. Can someone help?


If you have a look at the source code, you'll see that all that is used is a Table with div tags inside, and then having the width and centering set up you'll get the expected effect. to learn how to use div's just ... google it!
Related topics
Basic HTML Introduction
Has the peaceful dead center the good song
How to center something horizontally AND vertically...
How Do You Center Your Entire Web Page?
Do anyone works in a call center?
Question: Div center with css
CSS - How to vertical center an object in CSS
come check my cool website ;) very cool design ;)
so what you thing???
Prywatne DATA CENTER
Center IFrame
Media Center
Spyware in Windows Security Center
Twain's frog jumps to center of debate
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

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