Forum Moderators: not2easy
#navcontainer {
width: 560px;
font-size: 69px;}
#header {
border: 1px solid #000;
background-image: url(../../../../03.png);
background-position: 0% 0%;
background-repeat: no-repeat;
padding: 5px; }
... plus more boxes
This is the HTML code
<div id="container">
<div id="header"></div>
But all this stuff doesn't work. I mean the text won't wrap around the image.
I also tried to nest another box inside the <div id="header"> but it came out as a mess, leaving me in a muddle state of mind.
thanks for helping me.
Also, you need to float your header image (add in float:left) - then the text will wrap around the image. You can adjust the padding as needed so the text won't butt right up against the image.
But that *should* do it.
In The CSS I wrote a new line too:
#header {
border: 1px solid #000;
padding: 5px; }
#img {float:left}
As far as I can see there is no way to manage all the thing just with CSS; there is the neeed of a bit of HTML.
Bye, bye.
Helphope
Your solution is what would work - the image would need to be put into the HTML, not set as the background - but if you wanted to have the image show as the background with text next to it, you could have also set your margin-left to the width of the image in the background. Then the text would be next to the image in question - not over it. However, it won't "wrap" around the image, because there's nothing for the text to wrap when the image is set as the background. If you wanted the text beside/below the image in question, then yes, some HTML is needed to make it wrap in such a way.
Glad it worked for you!