CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.getting_started Tags:
Item Type: NewsGroup Date Entered: 12/19/2005 6:09:30 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
robo_arnold
Asp.Net User
FireFox fails to display fixed width of SOLPARTMENU horizontal menu item in CSS12/19/2005 6:09:30 PM

0/0

I am working on a skin for a menu navigation with 1-horizontal menu (root) and 1-vertical menu (child).  This should be a very standard fare.  The only thing I see different from most DNN sites is that I require a fixed horizontal menu tab.  I used CSS to set the width and it works great in IE and it doesn't in Firefox.  Any idea?  Here's what I use in CSS:

.MainMenu_MenuItem_New td {
 width:100px;
 height:26px;
 text-align:center;
 background-image: url("buttonOff.gif");
 background-repeat: no-repeat;
 background-color: transparent;
 cursor: pointer;
 cursor: hand;
 color: #ffffff;
 font-size: 9.5pt;
 font-weight: bold;
 font-style: italic;
 font-family: Arial;
}

 

xddg
Asp.Net User
Re: FireFox fails to display fixed width of SOLPARTMENU horizontal menu item in CSS12/19/2005 11:04:27 PM

0/0

I've never been able to successfully get it to work which is why I end up working with a combination of the links module, breadcrumbs token, links token, inventua menu module.

I don't think it's something that firefox recognises.. *sigh* and people give MS a hard time.. I think it should be supported and would really like to know if anyone else has solved this problem.

Nina Meiers


Nina Meiers


Free Skins & Containers by Nina Meies
robo_arnold
Asp.Net User
Re: FireFox fails to display fixed width of SOLPARTMENU horizontal menu item in CSS12/23/2005 8:04:40 AM

0/0

I finally nailed this one.  In addition to the my previous css class, I also added the following in skin.css to deal with FireFox compatibility issue.  Of course you'll need to do the same for menu active and selected class.

.MainMenu_MenuItem_New {
    width:100px;
    height:26px;
    background-color: transparent;
    display:block;
    border:0;
}

According to W3C, width should only be supported in block-level tags, not in-line tags.  Firefox sticks to this rule but IE seems to violate this rule by enforcing width for any tag.  To get around this enforced rule in FireFox, one must turn a tag into block-level and that can be done by using "display:block".  One characteristic of the usage of this display tag is that it will add a line break above and below, causing line misalignment if declare inside a <td> tag.  So I place it in the main class instead. 

My fixed-size menu buttons now work in both IE and Firefox.  Cheers.

 

xddg
Asp.Net User
Re: FireFox fails to display fixed width of SOLPARTMENU horizontal menu item in CSS12/26/2005 6:57:48 AM

0/0

Thanks for posting this on the forum -

Much appreciated.

Nina Meiers


Nina Meiers


Free Skins & Containers by Nina Meies
4 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

Why does 100% Css Desing Fail in Dnn? (No Tables) - ASP.NET Forums It looks great in IE but in Firefox the SolPartMenu is shifted down a few pixels ... I have a set of free skins coming soon ( with included css only menu ) horizontal ...
www.aspspider.com/rss/Rss33506.aspx



 
All Times Are GMT