Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-21-2008, 04:10 PM Roll Over Images
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
For some reason, only a portion on the images that I am using as links under "What Are You Looking For?" are being displayed. Any thoughts?

http://www.drawninwardmedia.com/nursecore/index.html

I'll include the HTML/CSS below:

HTML
_____

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Welcome to NurseCore</title>
<link href="styles/site-style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="container">

<div id="nav">

<div class="left"></div>

<div class="right"><img src="images/home_right_apply_top.jpg" /><br /><a href="#" style="text-decoration:none;"><img src="images/home_right_apply_button1.jpg" /></a><img src="images/home_right_apply_bottom.jpg" />

</div>

</div>

<div id="flash_content">

<!--This is where the Flash piece will go -->

</div>

<div id="right_content">

<div id="find">

<ul>

<li class="find_job"><a href="#"><i>Find a Job</i></a></li>
<br />
<li class="find_nurse"><a href="#"><i>Find a Nurse</i></a></li>

</ul>

</div>

<div class="recentnews">

<ul>
<li><span><strong>July 2008:&nbsp;&nbsp;</strong>New Office Opening&hellip;</span></li>
<br />
<li><span><strong>May 2008:&nbsp;&nbsp;</strong>Celebrate Nat'l Nurse's Week&hellip;</span></li>
<br />
<li><span><strong>July 2008:&nbsp;&nbsp;</strong>Staffing Solutions for Nurses&hellip;</span></li>
</ul>

</div>

</div>

<div id="info">

<div class="welcome">

<p align="left">

NurseCore is a national leader in the medical staffing and home care services industry. We are committed to exceeding the expectations of our customers, clients and employees through ethical and professional conduct. If you are a healthcare professional looking to <a href="#">find a job,</a> or if you need to <a href="#">find a nurse</a> for your facility or for <a href="#">home care assistance,</a> you have come to the right place.

</p>

</div>

<div class="locations">

<a href="#">Texas</a> <br />
<a href="#">Arizona</a> <br />
<a href="#">New York</a> <br />
<a href="#">Florida</a> <br />
<a href="#">Colorado</a> <br />
<a href="#">Nevada</a> <br />
<a href="#">California</a> <br />

</div>

</div>

<div id="footer">

Questions? Call us at 800-XXX-XXXX or <a href="mailto:contactus@nursecore.net">contactus@nu rsecore.net</a><!--The blank spaces are a temporary fix -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; &copy; 2008 NurseCore all rights reserved

</div>

</div>

</div>

</body>
</html>


CSS
_____

/*--------------------

Site Style Sheet

version 1.1
authours: andrew deacon and james avery
email: deacon@drawninwardmedia.com/avery@drawninwardmedia.com
website: drawninwardmedia.com

--------------------*/

/*-----Body Styles-----*/

* {
margin: 0;
padding: 0;
}

body {
font-family:Arial, Helvetica, sans-serif;
text-align: center;
background-color: #F5F6FA;
}

/*-----end of body styles-----*/

/*-----HTML Styles-----*/

a {
text-decoration: none;
}

h1 {

}

h2 {

}

h3 {

}

/*-----end of html styles-----*/

/*-----CSS Styles-----*/

#container {
position: relative;
text-align: left;
width: 1024px;
background-image: url(../images/header.jpg);
background-repeat: no-repeat;
background-position: top;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
height: 768px;
}

#nav {
width: 1024px;
text-decoration: none;
}

#nav a {
text-decoration: none;
}

#nav a img {
border: none;
}

#nav .left {
background: url(../../nursecore/images/home_header_left.jpg) no-repeat;
height: 132px;
}

#nav .right {
left: 513px;
position: absolute;
top: 0;
}

#flash_content {
background: url(../../nursecore/images/home_flash_placeholder.jpg) no-repeat; /* This is for testing purposes */
height: 224px;
width: 513px;
}

#right_content {
background: url(../../nursecore/images/home_right_bg2.jpg) no-repeat;
height: 480px;
position: absolute;
left: 513px;
top: 132px;
width: 277px;
}

#info {
background: url(../../nursecore/images/home_left_bg.jpg) no-repeat;
height: 254px;
width: 513;
}

#info .locations {
color: #FFFFFF;
height: 175px;
left: 73px;
padding: 0 5px 0 5px;
position: absolute;
top: 394px;
text-align:center;
width: 100px;
line-height: 24px;
}

.locations a:link, a:visited {
color: #FFFFFF;
font-size: 12px;
}

.locations a:hover {
color: #F9BD43;
}

#info .welcome {
height: 156px;
left: 215px;
position: absolute;
top: 411px;
width: 260px;
line-height: 15px;
}

.welcome p {
color: #FFFFFF;
font-size: 10px;
}

.welcome a {
color: #F9BD43;
}

#find {
height: 150px;
margin: 0;
padding: 0;
position: absolute;
top: 75px;
width: 205px;
left: 15px;
}

#find i {
visibility: hidden;
}

#find a img {
border: none;
}


#find li {
height: 39px;
list-style: none;
width: 212px;
}

#find ul {

}

#find .find_job a:link, a:visited {
background: url(../images/home_findajob_button1.jpg);
height: 39px;
width: 212px;
}

.find_job a:hover {
background: url(../images/home_findajob_button-RO.jpg);
height: 39px;
width: 212px;
}

.find_nurse a:link, a:visited {
background: url(../images/home_findanurse_button1.jpg);
height: 39px;
width: 212px;
}

.find_nurse a:hover {
background: url(../images/home_findanurse_buttonRO.jpg);
height: 39px;
width: 212px;
}
#right_content .recentnews {
font-size: 10px;
height: 144px;
padding: 5px;
position: absolute;
top: 280px;
width: 234px;
}

.recentnews a {
color: #F9BD43;
}

.recentnews li {

}

.recentnews span {
color: #FFFFFF;
}

.recentnews ul {
color: #F9BD43;
}
#footer {
color: #FFFFFF;
font-size: 10px;
height: 22px;
left: 180px;
padding: 10px 5px 2px 5px;
position: absolute;
top: 574px;
width: 569px;
}

#footer a:link, a:visited {
color: #FFFFFF;
}

#footer a:hover {
color: #F9BD43;
}


/*-----end of css styles-----*/

Thanks in advance.

/*----------END OF DOCUMENT----------*/
ADeacon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-21-2008, 04:21 PM Re: Roll Over Images
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
check to make sure the image exists in that path
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 10-21-2008, 04:24 PM Re: Roll Over Images
Junior Talker

Posts: 2
Trades: 0
Just a quick feeling as to the problem, so take with pinch of salt:

You are using the hover effect of the div to do a rollover, yes?

If so the div has to be dimensioned to the size of the image.

Now, you will need to put something in at least that takes up a minimum of 1 x 1 pixel.

and CSS controls are:

height :
min-height :
width:
min-width :

You could do a rollover with javascript, but the CSS is sort of ok.
__________________
WindFleur

Please login or register to view this content. Registration is FREE
WindFleur is offline
Reply With Quote
View Public Profile
 
Old 10-21-2008, 04:44 PM Re: Roll Over Images
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Thanks for the replies. So far I have had no luck. The only thing that seems to expose more of the image is text in the <i> tag. The more text I put in, the more of the image reveals itself. I know this isn't the appropriate way to solve this problem so I'll keep working. Any help would be greatly appreciated.
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 10-21-2008, 07:48 PM Re: Roll Over Images
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
use this:

Code:
<!-- Head Section -->
<script language="javascript">
var rightArrow = new Image(); //Create Image Object
</script>
<!-- End Head Section -->
<!-- Body -->
<a href="#"><img name="RightArrow" src="RightArrow.png" onmouseover="document.RightArrow.src='RightArrowOver.png';" onmouseout="document.RightArrow.src='RightArrow.png';" border="0"></a>
<!-- End Body -->
In fact, you don't even need the javascript but it will get rid of having to load the image once the mouse goes over the link.

Enjoy!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 10-22-2008, 10:14 AM Re: Roll Over Images
Experienced Talker

Posts: 46
Name: John Henson
Trades: 0
Quote:
<ul>

<li class="find_job"><a href="#"><i>Find a Job</i></a></li>
<br />
<li class="find_nurse"><a href="#"><i>Find a Nurse</i></a></li>

</ul>

#find .find_job a:link, a:visited {
background: url(../images/home_findajob_button1.jpg);
height: 39px;
width: 212px;
}

.find_job a:hover {
background: url(../images/home_findajob_button-RO.jpg);
height: 39px;
width: 212px;
}

.find_nurse a:link, a:visited {
background: url(../images/home_findanurse_button1.jpg);
height: 39px;
width: 212px;
}

.find_nurse a:hover {
background: url(../images/home_findanurse_buttonRO.jpg);
height: 39px;
width: 212px;
}
I'm not sure but I don't think you can do it like that with a li element, I've always styled a div into a button by giving it a fixed width and height and a different background image for the a: hover attribute and the a:link attribute.

Clearly the li is not taking the height and width attributes you are trying to give it, I think this is because it's not a block level element.

My advice, use divs, they work.

J.
Invictus is offline
Reply With Quote
View Public Profile
 
Old 10-22-2008, 11:05 AM Re: Roll Over Images
ADeacon's Avatar
Experienced Talker

Posts: 32
Name: Andrew
Location: Texas
Trades: 0
Decaf, you're advice worked perfectly. Thanks everyone for the help. I'll sleep soundly tonight.
ADeacon is offline
Reply With Quote
View Public Profile
 
Old 10-22-2008, 04:20 PM Re: Roll Over Images
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Quote:
Originally Posted by ADeacon View Post
Decaf, you're advice worked perfectly. Thanks everyone for the help. I'll sleep soundly tonight.
No Problem, with all these "new" ways to do coding, sometimes it just works best if you use the simple and "oldschool" methods.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Reply     « Reply to Roll Over Images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.37475 seconds with 12 queries