473,395 Members | 1,468 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,395 software developers and data experts.

Hyper link width trouble in Netscape 7

I have the following code. For IE 6, I can get link one and link two
in two separated lines, but not in Netscape 7. I try to set
display:block for A.ccMenu; however, the hyperlink excess ccMenuBox
boundary.

Netscape 7 should have better css support; however, it just give me
headache sometime.

Any suggestion?
Thanks in advace.

Alex
----------------------
<html>
<head>
<title>Untitled</title>
<STYLE>
..ccMenuBox {width:150px;border:1px solid black;background:yellow}
A.ccMenu {padding-left:10px;padding-right:10px;background-color:yellow;
width:150;margin:0px;}
A.ccMenu:hover {background-color:white;}
</STYLE>
</head>

<body>

<DIV class="ccMenuBox">
<A href=# class="ccMenu">Link one</A>
<A href=# class="ccMenu">Link Two</A>
</DIV>

</body>
</html>
Jul 20 '05 #1
1 3153
Jim Dabell <ji********@jimdabell.com> wrote in message news:<hR********************@giganews.com>...
Alex Peng wrote:
I have the following code. For IE 6, I can get link one and link two
in two separated lines, but not in Netscape 7. I try to set
display:block for A.ccMenu; however, the hyperlink excess ccMenuBox
boundary.


I'm not sure what you mean by this. You want <a> elements on separate
lines, setting them to block display sounds reasonable. If you have
trouble with the width, then check your margins and padding.

Netscape 7 should have better css support; however, it just give me
headache sometime.

Any suggestion?
Thanks in advace.

Alex
----------------------
<html>

[snip]

You aren't going to get better CSS support if you don't supply a doctype.
Look into "quirks mode" and "doctype switching". Browsers will
intentionally get your CSS wrong with a document like this.

All bets are off as far as CSS is concerned until you have valid HTML. I
have better things to do than to track down obscure behaviours in error
conditions, and I'm guessing you do too. Let the computer do a bit of the
work for you.

<URL:http://validator.w3.org/>


I modified the previous code as below and passed w3 validator.
This time I put text-indent instead of padding. Looks good, but not
what I want.
I really need the padding-left and padding-right for ccMenu; however,
ccMenu exceeds 150px if I add padding.

I doubt this is a bug of Netscape/Mozilla.

Alex

---------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
<title>Untitled</title>
<STYLE type="text/css">
..ccMenuBox {width:150px;border:1px solid black;background:yellow}
A.ccMenu {display:block;text-indent:10px;background-color:yellow;
width:150px;}
A.ccMenu:hover {background-color:white;}
</STYLE>
</head>

<body>

<DIV class="ccMenuBox">
<A href="#" class="ccMenu">Link one</A>
<A href="#" class="ccMenu">Link Two</A>
</DIV>

</body>
</html>
Jul 20 '05 #2

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

Similar topics

1
by: j erickson | last post by:
with the following xsl and xml file, the display of the gif file with the <image/url> tag works. However, the gif file in the <description> tag using the name attribute "src" won't make the correct...
1
by: Justin | last post by:
Ok here is working code in IE, <td ID="TD1" width="478" height="553" background="images/GUYONDOC.JPG" valign="top">. . . </td> <a href="texana.htm"...
4
by: Ciar?n | last post by:
Hi all, I've go a little mailto: link on a page that when clicked opens an email form with the email address in the To field - all very simple. Problem is that in Netscape, a new blank window is...
14
by: Brandon Hoppe | last post by:
I'm trying to change the src of an ilayer in the parent document from a link inside the ilayer. I'm not able to get it to work. All that happens is Netscape 4 crashes. This is for Netscape 4 only....
4
by: Miguel Dias Moura | last post by:
Hello, I created a datalist in an ASP.Net / VB page. I display the image and price of a few products. When a user clicks an image I want to load the page "detail.aspx?number=id" and send the...
7
by: nonsensitor | last post by:
I'm having some trouble with horizontal navbars. In particular, I can't seem to get the width right for IE. I think I can resolve it if I can apply a separate style (via a class "lastnavitem") to...
2
by: David McDivitt | last post by:
resending with better URL At the URL http://www.spfldcycling.org/miles/06_12_detail.htm , I'm having difficulty resizing a DIV object when the window resizes. I want to get the left and top...
1
by: Kalaram | last post by:
I am makeing a CD, and in this CD i have alot of .pdf & .ppt & .pps files and i have one html page that i use as index to all the files, when i click on the hyper link of .pdf file , it opens...
3
by: topherknowles | last post by:
Hello, I have a number of links opening in a fixed window that certain users cannot access because they are on netscape 4.6 (I think this can handle the links and it is actually their ancient...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.