close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

achieving inline style on hover?

Thread began 3/11/2013 12:44 pm by CraigR | Last modified 3/12/2013 3:30 pm by CraigR | 2092 views | 8 replies

JamieEff

I know what you mean.

In terms of making it clickable, you can make the whole element clickable.

It was just a question of creating the padding in the first instance. If it helps, heres the css I did for the one in the other thread which may help you to deconstruct/reconstruct:

ul#cssmw > li > a, ul#cssmw > li > a:link {  background-color: #5d5e61;  background-image: none;  border-left: 2px solid #fff;  color: #FFFFFF;  display: block;  font-family: Arial, Helvetica, sans-serif;  font-size: 14px;  font-style: normal;  font-weight: normal;  height: 25px;  padding: 120px 0px 0px 0px;  text-align: center;  text-decoration: none;  text-transform: uppercase;  width: 91px;  outline-style: none;}

<!-- HOME -->
ul#cssmw > li#home > a:active, ul#cssmw > li#home > a:focus { background-color: #bc8548; background-image: url("../images/misc/nav-arrow.png"); background-position: center 143px; background-repeat: no-repeat; color: #FFFFFF; font-weight: normal; text-decoration: none; outline-style: none;padding-bottom:20px;margin-top:-20px;overflow:hidden;}
ul#cssmw > li#home:hover > a, ul#cssmw > li#home:hover > a:link {background-color: #bc8548; background-image: url("../images/misc/nav-arrow.png"); background-position: center 143px; background-repeat: no-repeat; color: #FFFFFF; font-weight: normal; text-decoration: none; outline-style: none; padding-bottom:20px;margin-top:-20px;overflow:hidden;}
ul#cssmw > li#home.current > a.current, ul#cssmw > li#home.current > a.current:link { background-color: #bc8548; background-image: url("../images/misc/nav-arrow.png"); background-position: center 143px; background-repeat: no-repeat; color: #FFFFFF; font-weight: normal; text-decoration: none; outline-style: none;padding-bottom:20px;margin-top:-20px;overflow:hidden;}

As you can see in the first line, I created a padding of 120px which set the space which was clickable

Obviously this was just one navigation point but there were others which had different coloured hover/on states.

and for a visual ref, have attached a screenshot of the nav showing that the on effect isnt just limted to the text area ...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...