CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: Date Entered: 7/24/2007 10:06:43 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 42 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"rfurdzik" <>
NewsGroup User
Adjustable tabs in CSS Adapters Menu7/24/2007 10:06:43 PM

0

I have developed CSS adapters menu as can be seen here:

http://newmenu.dnndirect.com/sell.aspx

1) Can the tabs be adjustable depending on the text entered? If I enter text "My Ads and Profile" it does not fit to the tab. 

My programmer thinks that the tabs must be the same width. I feel that CSS design should allow to adjust width of the tab to the text enetered. Can somebody help or give general guidline what he needs to do.

I also have some other problems with thsi menu 

2) When I place the menu on my page, the second bar is not visible any more: http://test.zikbay.com/

3) It also screw up the font in the Browse category tab... The whole browse category moves down in firefox...

This is the original page:

www.zikbay.com


Rafal
Zikbay.com - The Best Free Online Classifieds


DNN Direct
"rfurdzik" <>
NewsGroup User
Re: Adjustable tabs in CSS Adapters Menu7/28/2007 3:03:58 PM

0

"Russ Helfand"
NewsGroup User
Re: Adjustable tabs in CSS Adapters Menu7/28/2007 3:54:58 PM

0

Let me give you a shove in the right direction. It's not the whole solution... but it's a very important piece.

Follow these instructions and observe...

  1. Install the CSS Friendly adapter kit (VSI) if you haven't already.
  2. In VS create a new web site based on the tutorial version of the kit.
  3. Run the site so the local version's default page shows in a browser (w/ or w/o the debugger, it doesn't matter).
  4. Take careful note of the menu at the top of the page. In particular, measure its menu items (top tier). Despite the fact that some of the menu items use briefer text than others they all use the same width. Presumably this is not what you want. You would like it if the menu items occupied space proportional to their text length.
  5. Edit App_Themes\Basic\MainMaster.css.
  6. At line 123 you'll find these rules:
    .MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li
    {
        width: 7em;
        padding: 2px 0 2px 0;
    }
    .MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu ul ul li
    {
        width:9em;
    }
  7. Change them to:
    .MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu li
    {
        padding: 2px 5px 2px 0;
    }
    .MainMenu .AspNet-Menu-Horizontal ul.AspNet-Menu ul ul li
    {
        padding: 2px 0 2px 0;
        width:9em;
    }
  8. Refresh the page in the browser. Observe that the main menu at the top of the page now uses proportional sizing.
  9. Return to the MainMaster.css and look a little further down. There is a comment about another thing you need to do in order to make the menu items be proportional. I don't recall now why I only went partway in this implementation in the kit. It's weird that I find that comment their but that I left the hardcoded LI width (re: the change I'm directing you to make above). It may have to do with the fact that once you make that change you'll discover small anomalies in the display of the submenus... but I think you can probably figure out how to tweak the CSS a bit more to get those problems to go away.

Good luck. Like I said, this is a shove in the right direction. It's up to you to take it further!


Russ Helfand
Groovybits.com
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













css adapters lost in space (with asp.net menu hated by google)

bound and template headertext overlaying datafield and itemtemplate text when rendering prettydetailsview

treeview expanded state

style sheets

how to make microsoft filter effect work in mozilla

css friendly menu control not working properly in ie6

cfca newbie: radiobuttonlist - render horizontally?

treeview dynamic node population

gridviewadapter row.attributes and row.styles

what is this detailsviewadapter code for?

formview only displays controls

modifying 2.0 web controls

is it possible make invisible a html control using css ?

treeview adapter selectedvalue problem

menu onmouseout strange behaviour

problem with skin files

integration to existing project

when menuitem.navigateurl is not set the menuitemclick event isn't fired!

compilation error in menuadapter.cs

little help to start with cssadapter for menu

rendered id attributes

css adapter - adapterenabled property doesn't work completely

asp.net 2.0 css friendly control adapters

wizard control and css adapters

menu adapter headache - !important, centering, separatorimageurl

using css adapters in already built site

cssfriendlyadapters with masterpages

menu control - background images

css and site map

treeview imagetooltip

problem with formviewadapter

gridview caption

menu adapter not working in ie7

asp menu css adapter

updated version of treeview css adapter - improved postback and state handling

very cool!

beginner problem

gridviewadapter beta 3.0 with added support for cssclass, clientid, headerstyle-cssclass, row.cssclass, row.attributes

menu underlines visited items in ie6 only

problems with css adapters and formview / gridview

experimental treeview adapter version: with postback and node selection

set the css-friendly menu properties programmatically

menu itemtemplate binding problem

trying to use adapter to modify validationsummary to use span instead of div

help

radiobuttonlist and css friendly control adapters newbie

datalist error

css friendly horizontal menu - how to make it work in ie6?

use cssadapters in library

detailsview unable to set input width in edit mode

   
  Privacy | Contact Us
All Times Are GMT