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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

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

Post by nwilcox »

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!
Last edited by nwilcox on Fri Aug 21, 2009 8:21 pm, edited 1 time in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

well that worked... sort of

Post by nwilcox »

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!
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

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

thanks for your help! :D :D :D
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

: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
Post Reply