473,513 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE: Top and Bottom of border not showing

Hello,

I'm having a problem where a style for a <a> tag
isn't working in IE:

border : 1px solid red;

If you use my code below, you'll see what I mean.
In IE6 on WinXP, I'm not seeing a red top and
bottom border. My HTML validates. It looks
exactly like I want it to in Firefox and Opera.

I recommend pasting my text into a file and then
viewing it to easily see what's going on.

Thanks.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1" />

<title> New Document </title>

<style type="text/css">

body
{
background-color : #bfbfbf;
text-align : center;
padding : 0px;
margin : 0px;

}

#mainDiv
{
width : 100%;
padding : 0px;
background-color : white;
background-image : url(images/bg1.gif);
}

#divContainer
{
width : 800px;
border-right : 1px solid black;
border-left : 1px solid black;
margin : 0 auto 0 auto;
}

#titleSection
{
width : 100%;
background-color : white;
/*background-image : url(images/logo1.jpg);*/
height : 120px;
margin : 0 auto 0 auto;
/*border-top : 1px solid gray;*/
border-bottom : 1px solid black;
text-align : left;
}

#titleSection img
{
margin-top : 10px;
}

/* //////////////////////////
//////// Global Links ////
////////////////////////// */
#globalLinks
{
width : 100%;
background-color : #224466;
margin-right : auto;
margin-left : auto;
text-align : left;
}

#globalLinks ul
{
margin: 0;
padding: 0;
list-style-type: none;

}

#globalLinks ul li
{
display: block;
float : left;
text-align: center;
padding: 0;
margin: 0;
}

#globalLinks ul li a
{
color : white;
text-decoration : none;
background-color : #2B5B87;
padding : 4px 8px 4px 8px;
margin : 0px;
border-right : 1px solid black;
font-family : Verdana;
font-weight : bold;

}

#globalLinks ul li a:hover
{
background-color : #3583CB;
}
/* //////////////////////////////
////// Control Bar ///////////
/////////////////////////////// */
#controlBar
{
width : 100%;
background-color : #AABBCC;
padding-bottom : 4px;
padding-top : 2px;
margin-bottom : 0px;
margin-right : auto;
margin-left : auto;
/*text-align : left;
padding-top : 10px;*/
}

#globalNav ul
{

list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}

#globalNav ul li
{
display: inline;

}

#globalNav ul li a
{
text-decoration: none;
padding: 2px 4px 2px 4px;
color: #fff;
background-color: #036;
border : 1px solid red;
}

#globalNav ul li a:hover
{
color: #fff;
background-color: #369;
border : 1px solid green;
}
/* /////////////////////
////// Content //////
///////////////////// */
#content
{
width : 100%;
background-color : white;
height : 500px;
margin-right : auto;
margin-left : auto;
}

</style>
</head>

<body>
<div id="mainDiv">
<div id="divContainer">

<!-- <div id="globalLinks">
<ul>
<li><a href="">Help</a></li>
<li><a href="">About</a></li>
<li><a href="">Logout</a></li>
</ul>
&nbsp;
</div>
-->
<div id="titleSection">
<img src="images/logo5.jpg" alt="Tracking
Management Tool" />
</div>

<div id="controlBar">

<div id="globalNav" style="float:left; padding
: 2px 0px 2px 3px">
<ul>
<li><a href="">Home</a></li>
<li><a href="">Help</a></li>
<li><a href="">About</a></li>
<li><a href="">Logout</a></li>
</ul>
</div>

<div style="float:right; text-align : left;">
<input type="text" size="10" />
<input type="button" value="Search for SIG/CR
#" />
<a href="">[Advanced]</a>
</div>
Welcome, User!

</div>

<div id="content"></div>

</div>
</div>

</body>
</html>
Jul 21 '05 #1
1 7474
Trent L <sp*******@hotmail.com> wrote:
I'm having a problem where a style for a <a> tag
Element.
If you use my code below


Don't post code to the group, delete all non essential code and post an
url instead: http://www.spartanicus.utvinternet.i...s_help_you.htm

--
Spartanicus
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2969
by: Blacksmith | last post by:
Hi, I'm a CSS noob, and I'm trying to implement a very basic layout but am having problems in certain browsers. Basically, I want a horizontally centred box with a fixed width of 750px, with a...
1
4559
by: Baldy | last post by:
Hi, I put a border color bottom on my links, just to make it a different color underline, but now the border bottom is also showing up under my images. HELP? I did do an img {border-bottom:0px...
0
2940
by: | last post by:
New to HTML here. I am trying to put a border after the headings. I got it to work but was wondering if there was an easier more intuitive way of doing this. Code is below. <html> <body> ...
1
2652
by: Edward | last post by:
I created a simple CSS layout (code and example below) for bloggin/writing but ran into five issues that I need help with: 1. How do I get rid of the right-margin red line on the last three...
3
2500
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
16
3266
by: FuzzyLogik | last post by:
By width, I don't mean weight. I have a row of <li>'s, with a bottom-border. I want the bottom-border to only go 90% of the <li> (centered) Is there any way to do this? I have it in this...
2
9058
by: test2000 | last post by:
Hello in my CSS section #post-footer I added the line border-bottom: 1px solid #d0d0d0; but the bottom line doesn't show up up. I think the code is correct because the exactly same code...
3
2802
by: Hymer | last post by:
Hello, I have a blog with link information at the bottom of each article. I just added a text-to-speech link from Talkr where you can "Listen to this article." Everything is working fine from...
7
3410
by: GTalbot | last post by:
Hello fellow authoring.stylesheets colleagues, Can someone please explain why the bottom margin of the last inflow block-level child in an overflowed parent should not have its margin reachable....
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.