Rice87
05-17-2012, 10:24 PM
Hey guys,
I´m new to the forum and also pretty new to html/css... now i was creating a website for my custom map in starcraft 2 and stumbled uppon a problem..
So below i have pasted the code and an image of what is wrong, here's the problem:
I was trying to create like sort of a background image for a div that stretches to the max size of the div which in my case is the image for the "messageboard". Now after that i tried to put some text on the image but whenever i try to (have tried a lot of stuff..) the div in which i put the text always seems to push away the messageboard image... i tried stuff like floating but its really wearing me out. if anyone could have a look id be grateful.
#right_content
{
float:right;
margin-right:100px;
width:900px;
height:800px;
}
.messageboard img
{
width:100%;
height:100%;
}
}
.content {
float:left;
width:900px;
height:800px;
display:inline;
}
.content h1
{
text-align:left;
color:#FFFFFF;
}
<div id="right_content">
<div class="messageboard">
<img src="../../../../Desktop/website/desert%20strike%20website/contentborder.png" alt="logo" />
<div class="content">
<h1>I want to be on top of the messageboard image :(</h1>
</div>
</div>
</div>
thnx,
Rice
I´m new to the forum and also pretty new to html/css... now i was creating a website for my custom map in starcraft 2 and stumbled uppon a problem..
So below i have pasted the code and an image of what is wrong, here's the problem:
I was trying to create like sort of a background image for a div that stretches to the max size of the div which in my case is the image for the "messageboard". Now after that i tried to put some text on the image but whenever i try to (have tried a lot of stuff..) the div in which i put the text always seems to push away the messageboard image... i tried stuff like floating but its really wearing me out. if anyone could have a look id be grateful.
#right_content
{
float:right;
margin-right:100px;
width:900px;
height:800px;
}
.messageboard img
{
width:100%;
height:100%;
}
}
.content {
float:left;
width:900px;
height:800px;
display:inline;
}
.content h1
{
text-align:left;
color:#FFFFFF;
}
<div id="right_content">
<div class="messageboard">
<img src="../../../../Desktop/website/desert%20strike%20website/contentborder.png" alt="logo" />
<div class="content">
<h1>I want to be on top of the messageboard image :(</h1>
</div>
</div>
</div>
thnx,
Rice