thenextbesthang
11-09-2006, 05:58 PM
Basically what I want to do is to make the top 20% of the screen orange, and make sure that some text always stays in that orange box.
Would the synax be sumthin like this
.divtop
{
width: 100%;
height: 25%;
border-color: black;
border-style: solid;
border-top-width: 1px;
border-left-width: 1px;
border-right-width: 1px;
border-bottom-width: 0px;
background: orange;
.texttop
{
text-align: center;
text-size: 30px;
}
}
<div class = "divtop">
<p class = "texttop"> Some Text Here </p>
</div>
Would the synax be sumthin like this
.divtop
{
width: 100%;
height: 25%;
border-color: black;
border-style: solid;
border-top-width: 1px;
border-left-width: 1px;
border-right-width: 1px;
border-bottom-width: 0px;
background: orange;
.texttop
{
text-align: center;
text-size: 30px;
}
}
<div class = "divtop">
<p class = "texttop"> Some Text Here </p>
</div>