Table vs Div vs Table

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Is this the kind of thing you're trying to do?

Code: Select all

<style>
	
	.button	&#123;
				border: 1px solid #000;
				border-right: 0; 
				padding: 1em;
				background-color: #ddd;
			&#125;

</style>
</head>

<body>
<div style="width: 50%; height: 100%; margin-left: 25%; border: 1px solid #000; background-color: #deddee;">
	<div style="border-bottom: 1px solid #000; background-color: #cc6699; padding: 1em; text-align: center;">
		Header
	</div>
	<div style="margin-top: 1em;">
		<span class="button" style="border-left: 0;">menu1</span><span class="button">menu2</span><span class="button">menu3</span><span class="button">menu4</span><span class="button" style="border-right: 1px solid #000;">menu5</span>
	</div>
</div>
</body>
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Ah, superb.

Thanks a lot McGruff... you're a diamond geezer ;)
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

You could accomplish the same thing using the "float" attribute and div's, li's, or what-have you. Personally, since a menu is just a different kind of list, li's would be the best choice, from a search-engine perspective.
Post Reply