Hi,
I am making a layout for my web site. There is a line which contains a ASP.NET breadcrumb and a slogan. Here are my code:
<div class="header_thirdline">
<asp:SiteMapPath runat="server" ID="SiteMapPath1" CurrentNodeStyle-CssClass="BreadcrumbText" PathSeparatorStyle-CssClass="BreadcrumbText" NodeStyle-CssClass="BreadcrumbText" RootNodeStyle-CssClass="BreadcrumbText"></asp:SiteMapPath>
<span class="slogan">
<img id="img1" alt="Slogan" src="~/images/common/onestop_img.jpg" runat="server" />
</span>
</div>
Next is the CSS code:
.slogan
{
float:right;
}
/*Breadcrumb area*/
.BreadcrumbText
{
color:Gray;
float:left;
border-width:3px;
border-color:Blue;
border-style:double;
}
a.BreadcrumbText:link, a.BreadcrumbText:visited
{
color:Gray;
float:left;
}
.header_thirdline
{
width:100%;
display:block;
float:left;
}
When I viewed in IE, there are more line (or space) added in the header_thirdline. The height of breadcrumb and slogan is x px while header_thirdline's height is x+p. P might be equal to 2*x. I tried to solve it. The breadcrumb was removed and everything was fine. So, what is the error with the breadcrumb?
It happened only in IE. FF is fine.
Please help me to solve it. Thank in advance.
Duc
I am making a layout for my web site. There is a line which contains a ASP.NET breadcrumb and a slogan. Here are my code:
<div class="header_thirdline">
<asp:SiteMapPath runat="server" ID="SiteMapPath1" CurrentNodeStyle-CssClass="BreadcrumbText" PathSeparatorStyle-CssClass="BreadcrumbText" NodeStyle-CssClass="BreadcrumbText" RootNodeStyle-CssClass="BreadcrumbText"></asp:SiteMapPath>
<span class="slogan">
<img id="img1" alt="Slogan" src="~/images/common/onestop_img.jpg" runat="server" />
</span>
</div>
Next is the CSS code:
.slogan
{
float:right;
}
/*Breadcrumb area*/
.BreadcrumbText
{
color:Gray;
float:left;
border-width:3px;
border-color:Blue;
border-style:double;
}
a.BreadcrumbText:link, a.BreadcrumbText:visited
{
color:Gray;
float:left;
}
.header_thirdline
{
width:100%;
display:block;
float:left;
}
When I viewed in IE, there are more line (or space) added in the header_thirdline. The height of breadcrumb and slogan is x px while header_thirdline's height is x+p. P might be equal to 2*x. I tried to solve it. The breadcrumb was removed and everything was fine. So, what is the error with the breadcrumb?
It happened only in IE. FF is fine.
Please help me to solve it. Thank in advance.
Duc