|
| |
|
|
mengyeow
Posts: 3 Joined: 4/2/2007 Status: offline
|
Help on Div Tag - 4/2/2007 22:11:08
how to make 2 Div tag align next to each other? can anyone tell me the step i have to do?
|
|
|
|
jurgen
Posts: 385 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: Help on Div Tag - 4/2/2007 23:02:46
The divs need to "float" . But be careful, if both divs are wider as the screen resolution the will stack again.
|
|
|
|
mengyeow
Posts: 3 Joined: 4/2/2007 Status: offline
|
RE: Help on Div Tag - 4/2/2007 23:16:08
meaning? quote:
ORIGINAL: jurgen The divs need to "float" . But be careful, if both divs are wider as the screen resolution the will stack again.
|
|
|
|
jurgen
Posts: 385 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: Help on Div Tag - 4/2/2007 23:36:40
quote:
ORIGINAL: mengyeow meaning? Your divs should have a style something like this:
#left {
height: 20px;
width: 20px;
border: 2px solid #FF0000;
float: left;
}
#right {
height: 20px;
width: 20px;
border: 2px solid #0000FF;
float: left;
} It all depends what you want to accommplish. There are different ways to line up divs side by side.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|