I'm a new designer and pretty young - 16.
I've recently encountered a problem with the paragraph tag inside a div.
I have a div within a div (both with id selectors) when i place a paragraph tag within the second div the line moves into a different posistion. Without the p tag the text is displayed properly.
Please help, it would be much appreciated.
I've recently encountered a problem with the paragraph tag inside a div.
I have a div within a div (both with id selectors) when i place a paragraph tag within the second div the line moves into a different posistion. Without the p tag the text is displayed properly.
Please help, it would be much appreciated.
Code:
<body bgcolor="#999999">
<div id="content">
<div id="content-top-bar"><p>This text appears a line down as to where you would expect it to be.<p/></div>
</div>
</body>
body{
background-color: #999999;
margin: 0;
padding: 0;
}
#content{
background-color: #ffffff;
margin: 0 15% 0 15%;
height: 600px;
padding: 4px;
}
#content-top-bar{
background-color: #ffffff;
height: 40px;
border-width: 2px 2px 6px 2px;
border-style: solid;
border-color: #999999;
}
Comment