Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7004815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:14:52+00:00 2026-05-27T21:14:52+00:00

So I have this Div that has a roll over effect on it where

  • 0

So I have this Div that has a roll over effect on it where it changes the border color on roll over, in order to make this div a link I’ve put a link into the DIV and given it a Display: Block property so it fills the div.

What I’m having an incredibly hard time doing is getting the text to align to the bottom left corner of this div while keeping the blocking so the whole roll over area stays a link.

ANY solutions to this problem I’d greatly appreciate, thanks for your help in advance I’ve been battling this for a while.

http://www.klossal.com/media/index_test.html

this is the test page and this is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"      
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
 <title>MEDIA</title> 
</head> 

<SCRIPT TYPE="text/javascript"> 
<!-- 
function mouseover() 
{ 
document.getElementById("thediv").style.borderLeft="10px solid black";  
} 
function mouseout() 
{ 
document.getElementById("thediv").style.borderLeft="10px solid #898787";
}

//--> 
</SCRIPT>
<style type="text/css"> 

</style>

</HEAD> 
<link rel="shortcut icon" href="\favicon.ico"> 


<body> 

<DIV style="width:200px;height:200px;border-left:10px solid #898787" id=thediv     
onmouseover="mouseover()" onmouseout="mouseout()">
<a style="padding-top:1cmpx;" href="www.klossal.com">LINK IT BABY</a>
<DIV>

</body> 
</html> 

</body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:14:52+00:00Added an answer on May 27, 2026 at 9:14 pm

    To align something to the bottom, one can set the position to absolute and bottom to 0px. This will align it to bottom of the first parent that is positioned either absolute or relative.

    In your case, set the position of the DIV to relative, the position of the link to absolute and the bottom of the link to 0px:

    http://jsfiddle.net/rodin/jxyZz/

    And by the way, you can achieve the rollover effect with pure CSS, see the fiddle. If you want to make the entire box a link, the box should be an A and the text a DIV (you did it the other way around).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div that has background:transparent , along with border . Underneath this
I have a div element that has an id and this div contains a
I have a variable that has this string: <DIV><SPAN style=FONT-FAMILY: Tahoma; FONT-SIZE: 10pt>[If the
I have this code that changes the opacity of the div on hover. $(#navigationcontainer).fadeTo(slow,0.6);
I have this CSS style that does a rounded corners for div border, but
I have a div that has this property: text-shadow:2px 2px 3px #252525; It works
I have a div that has fixed height and a background color - as
I have a div that has scrollable content, but it is vital that this
I have a container div element that has overflow:hidden on it. Unfortunately this property
Hey i have this div that shows as a popup: <div class=popup> </div> Then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.