Ok, so this problem may have been asked before, but no one seems to have my exact problem. When I put a set of inline <P>'s inside an inline div and then put the width to 100%, instead of expanding to the width of it's parent element it sticks at just the width it needs to fit it's <P> elements. Here is the code
<html>
<head>
<title>Header Template</title>
<style type="text/css">
div.header{
border-style:solid;
border-width:2px 0px 2px 0px;
border-color:#999999;
padding-top:3px;
padding-bottom:1px;
display:inline;
width:100%;
}
p.header{
font-family:"Times New Roman", Times, serif;
font-size:20;
letter-spacing:4;
display:inline;
width:100%;
}
.black{
color:black;
}
.grey{
color:#999999;
}
p.big{
font-size:26;
padding:0px 0px 0px 0px;
letter-spacing:0;
}
p.telephone{
font-size:15;
}
div.telephone{
right:0;
}
</style>
</head>
<body>
<div class="header">
<p class="header black big">T</p>
<p class="header black">HE </p>
<p class="header black big">N</p>
<p class="header black">AME </p>
<p class="header grey">| BOB JONES</p>
<div class="header telephone">
<p class="header telephone gray">| </p>
<p class="header telephone">1855-ANUMBER</p>
</div>
</div>
</body>
</html>
I'm pretty sure that this is super obvious, but I don't understand CSS and HTML that well.
P.S. I've already tried taking out the div inside that floats right, and that doesn't solve it