hi.
Hi. I have taken a new interest in the html and css, and I feel I have gripped html easily, but I am not very good at css. My question is, how do you have more than one div on the same line? Thank you, James Allison
Answers
Hi James
22 April 2011
Because a div is a block element it needs to be floated so for example:
Hello!
World
22 April 2011
Whoops:
Hello
World!
22 April 2011
ok thank you let me just try that :)
22 April 2011
i put this in my html:
Contact
22 April 2011
oh it doesnt work on this chat thing :/
22 April 2011
anyway, i put #contact {
div style='float:left;} in the css
22 April 2011
and it still didnt do anything :/
22 April 2011
Try with a very basic example, just with 2 divs, play around with the background colour so you can see what it is doing, then add it into the code you already have.
22 April 2011
ok
22 April 2011
sorry, how would i do this with a proper seperate css document?
23 April 2011
Add an answer
Similar questions