|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Div problem
Ok i want more than one div on the same line.... but this code isnt working. My divs are formatted to look like tables... just so you know.
Code:
<center>
<div class="top">
<div class="header">
Header, Yo!
</div>
</div>
<div class="bg">
<div class="left">
<div class="header2">
Yo, Fool! Title!
</div>
</div>
<div class="main">
<div class="header2">
MAIN TITLE HERE
</div>
</div>
<div class="right">
<div class="header2">
Yo, Fool! Title!
</div>
</div>
</center>
|
|
#2
|
||||
|
||||
|
There's a couple or more ways to do this.
Code:
styles
#right {
float: right;
width: 200px;
}
#left {
float: left;
width: 200px;
}
#middle {
margin: 0 210px;
}
or
#right {
position: absolute;
right: 0;
width: 200px;
}
#left {
position: absolute;
left: 0;
width: 200px;
}
#middle {
no different
}
html
<div id="banner">some stuff</div>
<div id="left">stuff</div>
<div id="right">stuff</div>
<div id="middle">stuff</div>
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Div problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|