Hi,
I'm trying to make a title header in css, the header has three parts. The 1st and 3rd part are images, and the 2nd part holds the text for the header. Something like:
-----------|---------------------------|--------|
Graphic Text Graphic
The whole header is contained inside a container div, which is given 100% width. The graphics ( 1st and 3rd part) are fixed in size. I just want the 2nd part to expand to fill the container div taking into account the 1st and 3rd Parts.
I tired "width:expression(100%-21px);" for the 2nd Part, but no luck. I have the code below. Can anyone help me out.
Thanks in advance.
HTML Code
----
<div class="headingContainer">
<div class="headingSection1"></div><div class="headingSection2"><div class="headingText">Member Login</div></div><div class="headingSection3"></div>
</div>
----
CSS Code
-----
.headingContainer
{
height:20px;
width:100%;
margin:2px;
margin-left:5px;
margin-top:10px;
margin-bottom:10px;
}
.headingSection1 {
background-image: url( background-repeat: no-repeat;
position: static;
height:17px;
float:left;
voice-family: "\"}\"";
voice-family: inherit;
left: 1px;
width: 18px;
}
.headingSection2 {
background-image: url( background-repeat: repeat-x;
position: inherit;
float:left;
width:expression(100%-21px);
height:18px;
padding-top:2px;
}
.headingSection3 {
background-image: url( background-repeat: no-repeat;
float:left;
height:16px;
voice-family: "\"}\"";
voice-family: inherit;
width: 3px;
}
---
I'm trying to make a title header in css, the header has three parts. The 1st and 3rd part are images, and the 2nd part holds the text for the header. Something like:
-----------|---------------------------|--------|
Graphic Text Graphic
The whole header is contained inside a container div, which is given 100% width. The graphics ( 1st and 3rd part) are fixed in size. I just want the 2nd part to expand to fill the container div taking into account the 1st and 3rd Parts.
I tired "width:expression(100%-21px);" for the 2nd Part, but no luck. I have the code below. Can anyone help me out.
Thanks in advance.
HTML Code
----
<div class="headingContainer">
<div class="headingSection1"></div><div class="headingSection2"><div class="headingText">Member Login</div></div><div class="headingSection3"></div>
</div>
----
CSS Code
-----
.headingContainer
{
height:20px;
width:100%;
margin:2px;
margin-left:5px;
margin-top:10px;
margin-bottom:10px;
}
.headingSection1 {
background-image: url( background-repeat: no-repeat;
position: static;
height:17px;
float:left;
voice-family: "\"}\"";
voice-family: inherit;
left: 1px;
width: 18px;
}
.headingSection2 {
background-image: url( background-repeat: repeat-x;
position: inherit;
float:left;
width:expression(100%-21px);
height:18px;
padding-top:2px;
}
.headingSection3 {
background-image: url( background-repeat: no-repeat;
float:left;
height:16px;
voice-family: "\"}\"";
voice-family: inherit;
width: 3px;
}
---