padding dissapears in CSS menu

This is a discussion on "padding dissapears in CSS menu" within the Web Page Design section. This forum, and the thread "padding dissapears in CSS menu are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 11th, 2007, 15:33
New Member
Join Date: May 2007
Location: Israel
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy padding dissapears in CSS menu

I built a website, but it has a problem that bothers the owner
http://tanyapreminger.com/work/brain...mage-Home.html
When changing the display size of the screen using the CONTROL button plus the mouse scroll, the CSS menu gets messed up.
The padding between the links dissapears and does not fix itself even when going back to the original size. THIS HAPPENS IN EXPLORER ONLY.
I tried changing the measurments from px to em but it didn't work.
Can anybody help me?
Here's the code-
HTML-
Code: Select all
<div class="chromestyle" id="chromemenu">
<ul>
<li><a href="../Brain_Damage-Home.html">HOME</a></li>
<li><a href="#" rel="dropmenu1">BACKGROUND</a></li>
<li><a href="../Brain_Damage-Team.html">TEAM</a></li>
<li><a href="../Brain_Damage-Technology.html">TECHNOLOGY</a></li> 
<li><a href="../Brain_Damage-Applications.html">APPLICATIONS</a></li>
<li><a href="../Brain_Damage-Contact.html">CONTACT</a></li>
<li><a href="../Brain_Damage-Download.html">DOWNLOAD</a></li>
</ul>
</div>
CSS-
Code: Select all
/* ######### Style for Menu ######### */
.chromestyle{
width: 100%;
height: 9px;
font-weight: bold;
color: #ffffff;
text-align: middle;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: "."; 
display: block; 
height: 40%; 
clear: both; 
visibility: hidden;
}
.chromestyle ul{
width: 97%;
background-color: #000000;
padding: 0px 8px;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold
text-align: center; /*set value to "left", "center", or "right"*/
height: 0; 
}
.chromestyle ul li{
display: inline;
}
.chromestyle ul li a{
color: #ffffff;
padding: 0px 8px;
margin: 0;
text-decoration: none; 
}
.chromestyle ul li a:hover{
background-color: #000000; /*THEME CHANGE HERE*/
}
 
#active a:link, #active a:visited, #active a:hover
{
color: #ffffff;
text-decoration: underline;
}
 
 
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute; 
width: 145px;
top: 5em;
left: 0em;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
font:normal 11px Arial;
line-height:18px;
z-index:100;
background-color: #000000;
visibility: hidden;
}
 
.dropmenudiv a{
width: 145px;
display: block;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: #ffffff;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #000000;
width: 145px;
}

Last edited by karinne; May 11th, 2007 at 16:35. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote

  #2 (permalink)  
Old May 11th, 2007, 16:47
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: padding dissapears in CSS menu

Quote:
Originally Posted by tanya68 View Post
The padding between the links dissapears and does not fix itself even when going back to the original size. THIS HAPPENS IN EXPLORER ONLY.
No ... it happens in FF too ... well ... part of the menu disappears in FF. And there's line appearing that breaks your background.

There's not much that can be done. You're using tables to structure your layout which is a really bad idea. See the link in my sig or the sticky at the top for why you shouldn't be using tables and how to do it with CSS and DIV.

The other thing is, the design is not a very good "web" design because of just this problem ... font size that can be increased by the user.

I suggest maybe you should rethink the design otherwise ... there isn't much you can do.
Reply With Quote
  #3 (permalink)  
Old May 14th, 2007, 21:47
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: padding dissapears in CSS menu

I must agree with Karinne on this one. At least the text resizes, but I'm sure there's a way where you could have the entire layout expand with it.
Reply With Quote
Reply

Tags
css, margin, menu, padding

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Padding In IE Monie Web Page Design 7 Feb 12th, 2008 03:36
CSS Padding with rtl direction marSoul Web Page Design 0 Jan 23rd, 2008 14:14
What's up with margins and padding in IE? Donny Bahama Web Page Design 41 Apr 19th, 2007 10:04
ie padding problem adsalamon Web Page Design 1 Dec 29th, 2006 16:31
Disappearing padding in IE diagonalArgument Web Page Design 1 Jan 8th, 2006 14:03


All times are GMT. The time now is 00:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43