Jump to content

Recommended Posts

Hi, I use to do all my layouts in tables so im now learning div layouts.. is this correct or is there better way?

 

	echo"	<div id='partners'>

			<div class='sponsor'>

				<div class='sponsor-title'></div>

				<div class='sponsor-content'></div>	

			</div>

			<div class='partners'>

				<div class='partners-title'></div>

				<div class='partners-content'></div>	

			</div>

		</div>";

Link to comment
https://forums.phpfreaks.com/topic/75768-css-layout/
Share on other sites

sorry what this does is creates two boxes.... 1 a sponsor box and 1 a partner box, the sponsor box is 150px wide and 75px high and the partners box is 600px wide and 75px high...

 

and in each box it has a title which is at the top of the box with a 25px height and a border for the bottom.

Link to comment
https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383432
Share on other sites

div class='sponsor-title'></div>

should surely be <h1> ????

 

<div class='sponsor-content'></div>

should just be a series of paragraphs and other markup to display content?

 

use the correct markup for the correct info. DON'T GET DIVITIS...

Link to comment
https://forums.phpfreaks.com/topic/75768-css-layout/#findComment-383461
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.