- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi all,
I would really appreciate any help anyone can give on this one…
I’m trying to put some form inputs next to each other to save vertical space. The way I’ve done it (which may be wrong!) is to create a div for the first few elements and float it left, so that the next few elements wrap around on the right. My problem is that the very first label and text field are lower that those on the right. I can’t figure this out but I’m sure it’s something stupid.
Thanks in advance,
Simon
Here’s the CSS:
#firstitems {
float: left;
width: 382px;
}
body {
font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
color: #000000 ;
}
h1 {
background-color: #333399;
color:#FFCC33;
font-size: 1.5em;
padding-top: 1em;
padding-bottom: 1em;
text-align:center;
border: 1px dashed #ffcc33;
}
h2 {
clear:both;
font-variant: small-caps;
background-color:#FFCC33;
border: 1px dashed #333399;
/*margin: 10px 0 10px 0;*/
}
p {
font-size: .8em;
}
.header-detail {
font-size: .5em;
font-weight: normal;
font-variant:normal;
font-style:italic;
}
.nocheck {
display: block;
margin-left: 25px;
padding: 0 0 0 10px;
border: 1px dashed #666;
}
form .label {
float: left;
width: 150px;
}
.dates {
margin-right: 10px;
}
Here’s the PHP/HTML:
Ah – it only does it in Firefox, not IE (6).
Does that ring any bells for anyone?