Jump to content

DIVS Help Please


TGWSE_GY

Recommended Posts

I should imagine you're using float, as opposed to fixed or relative positioning *lowers eyebrows* :P

 

you'd start by mapping out your html so...

 

<div class="boxContainer">

   <div class="usrImgBox"></div>
   <div class="updStatBox"></div>
   <div class="mailReqBox"></div>
   <div class="recPhActBox"></div>
   <div class="frndActBox"></div>

</div>

 

then you'd use CSS (provided you understand what CSS is) to position the boxes:

 

div.usrImgBox
{
width: 150px;
height: 200px;
float: left;
padding: 20px;
}

 

I've gotta go now but If nobody/you does anything between now and say a few hours

 

mess around with floats, make sure they are in a container, right works as well just so ya know, the css

clear: left, clear: right and clear: both

will fix any kind of problem to do with staggering and stuff, work it out, i may help if as i say you can't sort it. bye.

Link to comment
https://forums.phpfreaks.com/topic/163641-divs-help-please/#findComment-864107
Share on other sites

Can you tell us the more specific application of this?

If you're using it for a profile for myspace, etc then it's slightly different then if you're making a brand new template for something else.

 

Using float: right and float: left you can make them float against each other.

 

ie:

 

float: left and then float: left again would place two divs floating to the left, side by side if you don't put a break between them

 

float: left and then float: right would push each to opposite sides and leave space for whatever inbetween them.

Link to comment
https://forums.phpfreaks.com/topic/163641-divs-help-please/#findComment-864770
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.