Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  help with some weird CSS
Previous Previous
 
Next Next
New Post 4/19/2008 7:45 PM
User is offline keeperofstars
252 posts
9th Ranked


help with some weird CSS 

not sure what the issue is, + I am really tired. lol

http://roanokewebsolutions.com/Skins/tabid/55/Default.aspx

In FireFox the menu items have like 250px height while they are fine in IE6 / 7.

I am using the housemenu, but its just the following CSS in control

#HouseMenuNav2 li
{
    /*all list items */
    border-bottom: 1px solid black;
    list-style: none;
    /*background-image: url(buttons/blue-ltblue_default.gif);
    background-repeat: repeat-x;*/
    /*IE hack to control spacing of menu */
    margin-left: 0px;
    voice-family: "\")\"";
    voice-family: inherit;
    /* for IE6+ and all other browsers */
    margin-left: 0px;
    background-color: #8c0c0e;   
        list-style: none;
}
#HouseMenuNav2 li a:link, #HouseMenuNav2 li a:visited
{
    /* main color of the menu */
    margin: 0;
    padding: 5px 5px 5px 3px;
    /*
    border-left: 5px solid #d88bb1;
    border-right: 1px solid #d88bb1;*/
    color: #8c0c0e;
    display: block;
    text-decoration: none;
    /* IE 5.01 hack to remove large white gaps in menu */
    height: 1px;
    voice-family: "\")\"";
    voice-family: inherit;
    /* for IE6+ and all other browsers */
    height: 100%;

}
#HouseMenuNav2 li a:hover
{
    background-image: none;
    background-repeat: repeat-x;   
    background-color: #A0B3D0;
    color: white;
}

if I take the li A:link and change the height to like 10% then it shrinks in Firefox, but also adversly affects IE. Any thoughts?

 

 
New Post 4/19/2008 9:01 PM
User is offline duchoangle
450 posts
vn.pijaja.com
8th Ranked


Re: help with some weird CSS 

Try this:

#HouseMenuNav2[id] li a:link, #HouseMenuNav2[id] li a:visited { height: 14px }

This is actually a CSS hack. IE will ignore elements that have "[id]", while FF displays them.

Otherwise, you can use an exact value for height, don't use 100% because FF displays it proportionally to the screen.

HTH,

Duc


Pijaja.Com - Innovative Site Builder

Sirius - Free skin for Dotnetnuke

 
New Post 4/20/2008 7:43 AM
User is offline Avi a
92 posts
www.nukedesigners.com
10th Ranked


Re: help with some weird CSS 

Hi,

Just replace the order. for example:

#HouseMenuNav2 li a:link, #HouseMenuNav2 li a:visited

should be:

 li #HouseMenuNav2 a:link,  li#HouseMenuNav2  a:visited

Why?

because in your markup that is the order!:

< li id="HouseMenuNav2" >

what you were doing was right for that:

< div id="HouseMenuNav2"  >

< li  >  etc".


www.nukedesigners.com W3C compliant Valid skins for dotnetnuke.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  help with some weird CSS
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP