473,503 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ul problem in Opera and FF

7 New Member
Page is www.oldvillagemasterpainters.com/about.aspx

I have validated both the html and the css. Css gives me warnings about background colors but passes.

My problem is this: There is a ul menu on the left side of the page that renders as I would like it to in IE7 (and I believe in IE6) but doesn't look so good in Opera 9.25 or FF 2.

In opera the list looks to be in-line and wraps within the containing <div>
In FF the list is in-line and wraps but outside the <div>

The relevant css (in page.css) is
/code/
#leftmenu {float:left;height:350px;margin: 10px 10px 10px 10px;width:200px;
background: url(/images/OV_Logo_trans_198.jpg) no-repeat 100% top;}
#leftmenu ul {list-style: none;}
#leftmenu ul li {}
#leftmenu a {display:block;float: left;padding: 0px 0 0 0px;
text-decoration: none;color: #330033;
font-weight: bold;font-size:small;font-family:Arial;}
#leftmenu a:hover {color: #CC0000;}
#leftmenu a:visited {color: #993399;}
#leftmenucontent {margin:110px 0 0 0px;}
/code/

html is
/code/
<div id="leftmenu">
<div id="leftmenucontent">
<ul>
<li><a href="#H">Our History</a></li>
<li><a href="#C">C. Schrack &amp; Co.</a></li>
<li><a href="#S">Christian Schrack</a></li>
<li><a href="#J">Joseph Stulb</a></li>
<li><a href="#G">Girard Ave Fire</a></li>
<li><a href="#G2">2nd Generation</a></li>
<li><a href="#R">Camden Fire</a></li>
<li><a href="#G3">3rd Generation</a></li>
</ul>
</div>
</div>
/code/

I use the same setup on /affiliates.aspx but on this page there is only text in the <div class="leftmenucontent"> - no ul

any help would be appreciated
Mar 7 '08 #1
7 1540
drhowarddrfine
7,435 Recognized Expert Expert
IE is showing what you want but not what you wrote. Never use IE as a reference for how things should work. It is 10 years behind web standards and buggy.

While you properly included the xml declaration on the first line, only modern browsers properly handle this while IE chokes and goes into 'quirks mode'. But you can safely remove that line since you are only serving html anyway.

After you do that, see where we stand.
Mar 7 '08 #2
kmw
7 New Member
I'm using asp.net and just added a global.asax file which is supposed to render xhtml to opera and ff but html to IE. Since my last post I also validated the page to xhtml 1-strict.

This didn't seem to have any affect on the problem.

I'm assuming that I am either doing something wrong or missing something in the css for the list,
Mar 7 '08 #3
drhowarddrfine
7,435 Recognized Expert Expert
You are one of the few people I've ever seen actually do that right. :)

On your first line of page2.css, the utf-8 BOM is showing and messing up the top of the page.

In the ul, you also want to float the <li> and I don't think you need to float the anchors inside that. The other elements need to be looked at, too. It may be obvious to you but I have to leave for a while.
Mar 7 '08 #4
kmw
7 New Member
Removing the float did the trick
/code/
#leftmenu {float:left;height:350px;margin: 10px 10px 10px 10px;width:200px;
background: url(/images/OV_Logo_trans_198.jpg) no-repeat 100% top;}
#leftmenu ul {list-style: none;}
#leftmenu ul li {}
#leftmenu a {display:block;padding: 0px 0 0 0px;
text-decoration: none;color: #330033;
font-weight: bold;font-size:small;font-family:Arial;}
#leftmenu a:hover {color: #CC0000;}
#leftmenu a:visited {color: #993399;}
#leftmenucontent {margin:110px 0 0 0px;}
/code/

not sure what you meant by the UB8 comment?

and thanks for the compliment but whatever I did right messed up all my validation - I think maybe because I was doing the validation using IE7.

if you look at the rest of my site you will see some other opera/ff problems so I may be back.
Thanks for the help
Kevin
Mar 7 '08 #5
drhowarddrfine
7,435 Recognized Expert Expert
It's "u t f -8" character encoding. Some editors save that type and add the BOM, which means "byte order mark" and indicates it's utf-8. It should not be there.

Do not try and fix Opera and FF. Always use those as your reference and initial test for working markup. Rarely do those browsers misinterpret html and css. IE handles far too many thing wrong to trust it. As you may be seeing now, what you are writing for IE messes up everybody else, but if you test first in Opera or Firefox, then chances are it will work everywhere; sometimes even IE ;)
Mar 7 '08 #6
kmw
7 New Member
How do you see the UTF-8 ?
I created the file using Visual Web Developer which doesn't show that line and I also opened the file using Notepad but still could not see it. Not sure how to get rid of it if I can't see it.
Mar 7 '08 #7
kmw
7 New Member
I've got the site looking pretty good - or at least consistent - on Opera, Netscape,Firefox, and IE. Thanks for your help.
Mar 8 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2320
by: Spijon | last post by:
Seems opera can not work normally with javascript, does anyone knows how to fix it? Thanks in advance.
6
2063
by: Anthony Williams | last post by:
Hi, I have a web page that works fine in Opera 7 and other modern browsers (IE6, Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties to set for Opera 5 to make it work,...
7
1793
by: TheMartian | last post by:
Opera is driving me nuts, I am trying to get it to actually render a table the full width of the browser window sounds easy, but no, Opera and only Opera leaves a 16px margin on the right edge ...
13
2512
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
4
2129
by: The Master | last post by:
Why will the unordered list not float in opera 7.5 unless a fixed/liquid width is applied to the unordered lists containing block? Then on the same token why does specifying a fixed/liquid width...
0
18436
by: BGS | last post by:
I have a web site (www.on-the-matrix.com) that displays photos in a "slide show" format on ASPX pages that run in an inline frame on an ASP page (or in a separate pop-up window). The ASPX pages...
6
2698
by: Jeremy | last post by:
I really want to make my scripts work in Opera. I really, really do. But it seems like an uphill struggle. First of all, I can't get ANY kind of debug output. No error messages in the...
41
3182
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
0
7202
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
7084
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
7278
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
7328
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
7458
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...
0
5578
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,...
0
4672
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
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
380
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...

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.