It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

onMouseOver HELP!!

onMouseOver HELP!!

Postby instinct46 on Tue Mar 27, 2007 1:38 pm

right just made a website at mercia right n i want the links in the left frame to align to the right when the mouse is over them is there anyway 2 do this?? cheers in advance
User avatar
instinct46
50+ Club
 
Posts: 90
Joined: Tue Mar 27, 2007 1:07 pm
Location: St Helens, England

Postby jberry on Tue Mar 27, 2007 5:40 pm

it is done in css here is the code to do what you ask
CSS: this would be the css that you apply to the html
Code: Select all
#menu a, #menu a:visited {
  text-decoration:none;
  background-color:#fff;
  color:#000;
  display:block;
  width:10em;
  height:1.5em;
  border-bottom:1px solid #fff; 
  border-right:1px solid #000;
  padding:0.5em;
  }
#menu a:hover {
  border-bottom:1px solid #000;
  text-align:right;
  }


html
Code: Select all
<div id="menu">
  <a href="#nogo">Item 1</a>
  <a href="#nogo">Item 2</a>
  <a href="#nogo">Item 3</a>
  <a href="#nogo">Item 4</a>
  <a href="#nogo">Item 5</a>
</div>
jberry
100+ Club
 
Posts: 144
Joined: Mon Mar 19, 2007 4:40 pm
Location: Atlantic City, NJ

Postby instinct46 on Wed Mar 28, 2007 10:48 am

cheers once again
User avatar
instinct46
50+ Club
 
Posts: 90
Joined: Tue Mar 27, 2007 1:07 pm
Location: St Helens, England


Who is online

Users browsing this forum: No registered users and 5 guests