473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Inconsistent border display

I have some buttons I'm working on at this address

http://www.boatingaccessories.com.au/test3.htm

In NS7, Mozilla and Opera, the borders don't render. IE6 displays as
intended.

Appreciate any insights.

David
Jul 20 '05 #1
4 3034
"David Ehmer" <eh***@optusnet.com.au> wrote:
I have some buttons I'm working on at this address

http://www.boatingaccessories.com.au/test3.htm

In NS7, Mozilla and Opera, the borders don't render. IE6 displays as
intended.


Okay, can you guess which browser is correct and which is wrong?

Your code is as follows:
border: 2px solid;
border-top: #AEAED5;
border-left: #8D8DBF;
border-bottom: #000000;
border-right: #000000;

The first line says to set all four borders to 2px width, solid style
and the color of the element (e.g. white for your links).
The next four lines set the colours on each side but also set the
width and style back to their initial values. And the initial value
for border-style is none.

Hence there should be no borders, beacuse that's what you've told the
browser to draw. IE is wrong, the other browsers are correct.

I would use the following instead:

border-width: 2px;
border-style: solid;
border-color: #AEAED5 #000000 #000000 #8D8DBF;

You also have other problems, because the buttons are sized in pixels
they break when the text is reszied, and there is no way to
distinguish between visited and unvisited links.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
David Ehmer wrote:

http://www.boatingaccessories.com.au/test3.htm
before asking for help here, please validate your code.
http://validator.w3.org/
In NS7, Mozilla and Opera, the borders don't render. IE6 displays as
intended.


I don't have IE 6, so I don't know what borders you want. I do see
uniform spacing between td elements. This does not, btw, look like
tabular data.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
Steve Pugh wrote:
[snip]
Your code is as follows:
border: 2px solid;
border-top: #AEAED5;
border-left: #8D8DBF;
border-bottom: #000000;
border-right: #000000;

The first line says to set all four borders to 2px width, solid style
and the color of the element (e.g. white for your links).
The next four lines set the colours on each side but also set the
width and style back to their initial values. And the initial value
for border-style is none.

Hence there should be no borders, beacuse that's what you've told the
browser to draw. IE is wrong, the other browsers are correct.

I would use the following instead:

border-width: 2px;
border-style: solid;
border-color: #AEAED5 #000000 #000000 #8D8DBF;

[snip]

I use a slightly different approach, and I wonder whether you see any harm in
it? I'll translate it to this case.

{ border: solid #000000 2px; border-top-color: #AEAED5; border-left-color:
#8D8DBF; }

In other words, be specific enough to stop the last 2 declarations changing
anything other than the colour.

(I have a reason for doing it that way which isn't really important here).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #4
"Barry Pearson" <ne**@childsupportanalysis.co.uk> wrote:
Steve Pugh wrote:

I would use the following instead:

border-width: 2px;
border-style: solid;
border-color: #AEAED5 #000000 #000000 #8D8DBF;

[snip]

I use a slightly different approach, and I wonder whether you see any harm in
it? I'll translate it to this case.

{ border: solid #000000 2px; border-top-color: #AEAED5; border-left-color:
#8D8DBF; }

In other words, be specific enough to stop the last 2 declarations changing
anything other than the colour.


Yes that should work just as well.
I prefer my definition as I'm defining like with like all the way down
but it makes no difference to the end result. (I can't think of any
browser bugs that would be triggered by one and not the other.)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

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

Similar topics

0
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there...
3
by: ireneatngs | last post by:
Hi, I have example html below which contains a couple of hidden divs. However, some of the table borders within these hidden divs are actually displayed when they should not be. In my...
2
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain...
31
by: jcrouse | last post by:
Is there a quick and easy way to change the color of a label controls border from the default black to white? Thank you, John
6
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display...
2
by: tradmusic.com | last post by:
Hi, I'm new to CSS and, following some advice, created my page like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>...
10
by: Robert Baer | last post by:
<SWM.HTM listing; does not work; positioning wrong (below main GIF)> <!-- IE adds a horizontal 4-icon strip near the upper left corner when that area is visited (WTF?) --> <head> <meta...
3
by: mcwd | last post by:
I'm trying to put a border around a link when the mouse rolls over it. I've made an example below and left out the hover to keep it simple. In IE the example below draws a box arround the image OK,...
0
by: eggsurplus | last post by:
<em>I just posted this in the wrong forum so sorry if anyone gets a dup!</em> I'm working on a slide down horizontal menu and I'm having issues getting the border around the submenu to display...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...

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.