Help on Div Tag (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


mengyeow -> 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 -> 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 -> 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 -> 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.




mengyeow -> RE: Help on Div Tag (4/3/2007 0:03:58)

ok got it thank you [:)]




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.125