473,671 Members | 2,183 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.dt d">
<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="divContaine r">

<!-- <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="titleSectio n">
<img src="images/logo5.jpg" alt="Tracking
Management Tool" />
</div>

<div id="controlBar" >

<div id="globalNav" style="float:le ft; 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:ri ght; 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 7516
Trent L <sp*******@hotm ail.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
2973
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 100px high header, a 50px high footer, and a contents box that grows to fit the contents. I also want a margin at the top and bottom of the centred box of a fixed height (30px). I have the following HTML file which gives the desired results in...
1
4563
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 solid #000000}, but that does not help..JHELP? Here's the page: wholives.com/tools.freestuff.html
0
2944
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> <STYLE type="text/css">
1
2666
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 right-boxes in Internet Explorer? 2. How can I put a 4px margin BETWEEN the right-boxes, "border-top: 4px" didn't do it and if I put in a "margin-top: 4px;" it shows the red underneath instead of the brown background graphic.
3
2508
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 work. Any ideas? Here's the HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
16
3277
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 format: CSS: li {
2
9074
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 works fine a another CSS section (eg #footer).
3
2809
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 the blog but the "Listen to this article" link is not showing on my RSS Feed. The RSS Feed goes through FeedBurner which is set for Full Article and SmartCast is on. The feed does validate with two warnings generated by server side HTML .
7
3432
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. I read and re-read carefully the CSS 2.1 spec and I just can not see why. Related webpages: http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/MarginBottomChildNotRendered.html
0
8392
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8597
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4222
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2809
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 we have to send another system
2
2049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1807
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.