473,387 Members | 3,750 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,387 software developers and data experts.

Many Browsers' Problem-It bothers me.

Hi,

I am a poor developer.

I made a split menu using html tag <Ul> and <LI>, but I have some problems..
I use the style property as followed by...

.li{
,,,,
display:block;
.....
}

But it works well in IE 6.0, but doesn't work well in IE 7.0 and Firefox.

I 'll explain about that in detail.

Let's assume the munus are followed by:

- AAAAAAAAA AAAAAAAAAAaaa
- BBBBBBBBBBBBBBBBBBBBBBBB

Then, in IE 6.0 result is the same above...
But in other browsers such as IE 7.0 and Mozila Firefox not so good like

- AAAAAAA
AA AAAAAAAAAAaaa
- BBBBBBBB
BBBBBBBBBBBBBBBB

For solving it, I used the style property: {display:outside} but it is useless.

Please help me!!!

Menus in my product are "broken" because of this problem.
Perhaps, experts must know why and how..

regards/likigoldenstar
Nov 24 '07 #1
6 1115
gits
5,390 Expert Mod 4TB
hi ...

welcome to TSDN ... i deleted your email address from your post for your own security ... i think you don't want to get spammed :) ... and at least its against the posting guidelines ... so please DON'T post your email address in the forums.

to your problem ... could you please post an code-example (html/css) so that we may have a closer look at your problem? in case we couldn't help i'll send this over to the html/css-forum where the experts certainly may help you with your problem ...

kind regards
Nov 24 '07 #2
mrhoo
428 256MB
display:block is not permitted for an li element
display:outside is not recognized in any html element
Nov 25 '07 #3
phvfl
173 Expert 100+
I suspect that part of the problem is that the line in the list item is longer than the containing element and so the line is wrapping at a space in the string.
Nov 25 '07 #4
I suspect that part of the problem is that the line in the list item is longer than the containing element and so the line is wrapping at a space in the string.
hello,

You're right.
when the line in the list item is longer than width of div tag, style of the list items is broken.

I'll send you some parts of css file and html file.
Css is followed by:

[HTML]/* othermenu */
div#othermenu div.module div div div {
padding: 10px 15px 15px 15px;
}

div#othermenu ul {
padding: 0px;
margin: 0px;
width: 158px;
overflow: hidden;
list-style: decimal-leading-zero;
background: #f5f5f5;
}

div#othermenu li {
display: block;
}

div#othermenu li a{
height: 25px;
display: ;
line-height: 25px;
text-decoration: none;
color: #646464;
}

div#othermenu li span {
height: 25px;
display: block;
line-height: 25px;
text-decoration: none;
color: #646464;
}

div#othermenu a:link, div#othermenu a:visited {
color: #646464;
}

div#othermenu li#current a {
font-weight: bold;
}

div#othermenu li#current li a {
font-weight: normal;
}

div#othermenu li a:hover, div#othermenu li span:hover, div#othermenu li span.sfhover {
color: #000000;
}

div#othermenu li.level1 {
background: #f5f5f5 url(../images/othermenu_level2_item.png) 0 0 no-repeat;
}

div#othermenu li.level1 a, div#othermenu li.level1 span {
padding: 0px 0px 0px 10px;
}

div#othermenu li.parent {
background: #f5f5f5 url(../images/othermenu_level2_item_parent.png) 0 0 no-repeat;
}

div#othermenu li.parent span {
cursor: pointer;
}

div#othermenu li.active, div#othermenu li.active:hover {
background-color: #969696;
}

div#othermenu li.active a, div#othermenu li.active span, div#othermenu li.active a:hover {
color: #ffffff;
}

#left div#othermenu li.level1 ul, div#othermenu li.level1 li, #left div#othermenu li.level1 li.active {
background: #ffffff;
}

#left div#othermenu li.level1 li a:hover, #left div#othermenu li.level1 li.active a:hover {
color: #000000;
}

#left div#othermenu li.level2 a {
background: url(../images/othermenu_level3_item_bg.png) 10px 2px no-repeat;
padding: 0px 0px 0px 30px;
width: 128px;
color: #646464;
height: 20px;
line-height: 20px;
}

#left div#othermenu li.level2 a:hover {
background: #ffffaa url(../images/othermenu_level3_item_bg.png) 10px 2px no-repeat;
}

#left div#othermenu li.level3 a {
background: url(../images/othermenu_level4_item_bg.png) 20px 2px no-repeat;
padding: 0px 0px 0px 40px;
width: 118px;
}

#left div#othermenu li.level3 a:hover {
background: #ffffaa url(../images/othermenu_level4_item_bg.png) 20px 2px no-repeat;
}

#left div#othermenu li.level4 a {
background: url(../images/othermenu_level5_item_bg.png) 30px 2px no-repeat;
padding: 0px 0px 0px 50px;
width: 108px;
}

#left div#othermenu li.level4 a:hover {
background: #ffffaa url(../images/othermenu_level5_item_bg.png) 30px 2px no-repeat;
}


Menu structure is followed by:
<div id="middle">
<div class="background layoutleft">
<div id="left">
<div id="left_container" class="clearingfix">
<div id="othermenu">
<div class="module"><div><div><div>
<ul class="othermenu">
<li class="level1 item9 parent toggler"><span >Maklumat Korporat</span><ul class="othermenu accordion">
<li class="level2 item1"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 12&amp;Itemid=86">Perutusan Menteri</a></li>
<li class="level2 item12"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 13&amp;Itemid=80">Perutusan KSU</a></li>
<li class="level2 item13"><a href="http://localhost/kkdn/#">Teraju Utama</a></li>
<li class="level2 item14"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 14&amp;Itemid=81">Visi &amp; Misi</a></li>
<li class="level2 item15"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 15&amp;Itemid=82">Fungsi / Obkjektif</a></li>
<li class="level2 item16"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 16&amp;Itemid=83">Piagam Pelanggan</a></li>
<li class="level2 item17"><a href="http://localhost/kkdn/#">Lagu KKDN</a></li>
<li class="level2 item18"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 18&amp;Itemid=85">Carta Organisasi KKDN</a></li>
<li class="level2 item19"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 17&amp;Itemid=84">Akta KKDN</a></li>
<li class="level2 item20"><a href="http://localhost/kkdn/#">Bahagian</a></li>
<li class="level2 item21"><a href="http://localhost/kkdn/index.php?option=com_content&amp;task=view&amp;id= 5&amp;Itemid=78">test</a></li>
</ul>
</li>[/HTML]
Nov 26 '07 #5
display:block is not permitted for an li element
display:outside is not recognized in any html element
Thanks for your help....

I post some part of css and html file as reply text. Please find it and consult.
And then, please give me solution..

I am very fretful because for menu.


In IE 6.0
menu are the same as:

#-- AAAA AAAAAAAA
###AAAAAAAAAAA

#-- BBBBBBB BBBBB
###BBBBBBBBB

But, in IE 7.0 and Mozila Firefox
menu are the same as:

#-- AAAA AAAAAAAA
AAAAAAAAAAA

#-- BBBBBBB BBBBB
BBBBBBBBB

symbol '#' is space. Space key is ignored in edit, so I replaced.
So, menu breaks our hompage...

I think you have no time to take care of me, but please help me....


Regards/
Nov 26 '07 #6
hi ...

welcome to TSDN ... i deleted your email address from your post for your own security ... i think you don't want to get spammed :) ... and at least its against the posting guidelines ... so please DON'T post your email address in the forums.

to your problem ... could you please post an code-example (html/css) so that we may have a closer look at your problem? in case we couldn't help i'll send this over to the html/css-forum where the experts certainly may help you with your problem ...

kind regards
Thanks for preventing my mail box.
Nov 26 '07 #7

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

Similar topics

12
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: function init(){ if(document.getElementById) alert("W3C...
8
by: Warren Sarle | last post by:
Here are two screen captures: http://www.warrensarle.com/borders.gif of this one web page: http://www.warrensarle.com/borders.php in IE and Firefox. A border-style of solid is rendered the same in...
13
by: Alan Silver | last post by:
Hello, I finally got around to buying a 2nd hand Mac, so I can test pages in the Mac-only browsers. It has IE5.2, although that hangs up every time I try to start it up, so I guess I won't be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.