Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:01

how to create onborder w/ only top & bottom borders [solved]


Poster: nwilcox
Dated: Wednesday July 12 2006 - 22:05:19 BST

I'm trying to create a CSS or Milonic based rollover appearance of a border appearing at the top and the bottom but NOT the left or right as I already have a border around the menu.

Is there a way to accomplish this with onborder or with custom CSS?

Thanks!


Poster: Ruth
Dated: Wednesday July 12 2006 - 23:56:27 BST

Hi,

You need to use css to create that kind of border. The css property you use is border, and code it just like you would for any border on a page.

If it is to be the same in both the mouse off and on state then you'd only need one class, if you want it different, then you need two classes.

You'd call it using the menu property offclass=""; onclass="";

Here's a basic css demo, the first page is an explanation then there's a link to a few examples.

http://support.milonic.com/beginners/css_styling/

Ruth

well that worked... sort of


Poster: nwilcox
Dated: Thursday July 13 2006 - 16:33:45 BST

well that sort of worked... now the link style has also be overwritten with my CSS styles

I have the text set at normal (not bold) and no text decoration (no underline)

both of these elements are setting for default a tags in my css so

any ideas?

thanks!


Poster: nwilcox
Dated: Thursday July 13 2006 - 16:35:03 BST

nevermind! I just used the rawCSS attribute to reset those and it worked

thanks for your help! :D :D :D


Poster: Ruth
Dated: Thursday July 13 2006 - 17:48:09 BST

:oops: Forgot about the rawcss... That's a good option if you're only doing a small amount on the menu.

I noticed that about using css, suddenly you have to specify the text-decoration and the fontstyle in the css if you are calling any kind of on or off class using css. You don't have to do anything else, it will take it from the menu_data file, but not that text-decoration or fontstyle.

Ruth