PDA

View Full Version : DIVs



Shibby-Shabs
05-10-2009, 02:59 AM
Ok I designed a template a while ago and Lewiie15 coded it for me and I've had a look at the CSS and changed it a bit but I want to add another box and I was wondering if anybody know how the CSS knows where to put the boxs.

for example this code:


}
#login_top {
width: 167px;
height: 24px;
float: left;
margin: 0;
border: 0;
background: url(imgs/box_top.png) no-repeat;
font: tahoma;
font-size: 13px;
color: #FFFFFF;
padding-top: 6px;
padding-left: 6px;
}
#login_content {
width: 171px;
float: left;
margin: 0;
border: #000000 solid 1px;
background: #EFEFEF;
font: tahoma;
font-size: 13px;
color: #000000;
padding-top: 7px;
text-align: center;
}

I've got the new box in sort of where I want it but I need to have a break line between them (for example <br> or <br />) so does anybody know?

VirtualG
05-10-2009, 07:06 AM
Just add padding between the two boxes you want seperating. If you've got one box ontop of another and you want it say, 5 pixels above the other then use: padding-bottom: 5px; on the box that was ontop.

Shibby-Shabs
05-10-2009, 07:47 AM
Didn't work, heres screenies.
http://i36.tinypic.com/2w3n7gl.png
http://i38.tinypic.com/ws43ew.png

Blinger1
05-10-2009, 07:53 AM
Can't you add a clear div that has a fixed height of 5px or whatever?

Shibby-Shabs
05-10-2009, 09:23 AM
Doesn't work. Did I mention I copied the CSS from the origonal box?


#box_top {
width: 167px;
height: 24px;
float: left;
margin: 0;
border: 0;
background: url(imgs/box_top.png) no-repeat;
font: tahoma;
font-size: 13px;
color: #FFFFFF;
padding-top: 6px;
padding-left: 6px;
}
#box_content {
width: 171px;
float: left;
margin: 0;
border: #000000 solid 1px;
background: #EFEFEF;
font: tahoma;
font-size: 13px;
color: #000000;
padding-top: 7px;
padding-bottom: 5px;
text-align: center;
}

LMS16
05-10-2009, 03:49 PM
m8, you have me on msn, stop making new posts lol i offer support on my layouts anyway...

Just ask me on msn

Lew.

Blob
05-10-2009, 04:02 PM
overflow: hidden;

that coding is terrible anyway.

BoyBetterKnow
05-10-2009, 04:20 PM
cba to read all code.

add margin-bottom:10px; on the box content or w/e

Shibby-Shabs
06-10-2009, 01:02 AM
cba to read all code.

add margin-bottom:10px; on the box content or w/e
Thanks man!

m8, you have me on msn, stop making new posts lol i offer support on my layouts anyway...

Just ask me on msn

Lew.
Haha, I didn't want to annoy you :D

LMS16
06-10-2009, 03:30 PM
m8, i offer support on all my layouts that are coded other than ones i coded like last year... lol

But if anyone contacts me asking me how to change the images ect i will virtually shoot you :) google does exist.

Lew.

Blob
06-10-2009, 05:24 PM
oh sorry, didnt read your post properly, thought you wanted to get rid of that gap, yeah, margin.

GoldenMerc
06-10-2009, 05:32 PM
m8, i offer support on all my layouts that are coded other than ones i coded like last year... lol

But if anyone contacts me asking me how to change the images ect i will virtually shoot you :) google does exist.

Lew.
Your acting like your some kid of god here :S

LMS16
06-10-2009, 07:36 PM
Your acting like your some kid of god here :S

How am i :S all am saying is a offer support on my layouts? nothing "godly" about that?

Lew.

Shibby-Shabs
07-10-2009, 07:18 AM
Hes making a well awesome usersystem and helped me free so to me hes a god :D

Want to hide these adverts? Register an account for free!