HostNed.comHostNed Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 19, 2008, 05:51:53 AM
256 Posts in 93 Topics by 71 Members
Latest Member: sclemens
Home Help Search Login Register
HostNed Forums  |  WEB DESIGN  |  Critique My Site  |  Topic: First "Public" Site 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: First "Public" Site  (Read 1146 times)
Dragonfighter
Newbie
*
Posts: 29


View Profile
First "Public" Site
« on: April 02, 2007, 04:42:05 PM »

Is here.  I have designed a few subpages before for exisiting sites but this is the first one I've designed for public consumption.  The layout is completely executed in CSS and it is cross browser compatible and validates.  I am pretty proud of it, just starting out.

There is one little quirk I would like any input on.  Because of an image map on the Meister Print illustration, to get the tool tip positioned where I wanted it in IE I had to insert a line break.  Unfortunately it added a space on the picture's caption when viewed in FF.  Not horrifying but annoying...any ideas?

Kyle
Logged
Dynaweb
Yep
Administrator
Full Member
*****
Gender: Male
Posts: 111


HostNed Admin


View Profile WWW
Re: First "Public" Site
« Reply #1 on: April 03, 2007, 01:08:02 PM »

Very nice CSS stuff there.  I have no idea about the space prob though.  Maybe include some of the specific code samples here and we can take a look.
Logged
Dragonfighter
Newbie
*
Posts: 29


View Profile
Re: First "Public" Site
« Reply #2 on: April 03, 2007, 07:41:50 PM »

Here is the CSS specific to the tooltip:

a.tooltip
{
cursor: help;
position:relative;
z-index:24;
}

a.tooltip:hover
{
z-index:25;
text-decoration: none;
position: relative;
display: block;
}

a.tooltip span
{
display: none;
}

a.tooltip:hover span
{ /*the span will display just on :hover state*/
font-family: "Times New Roman", Times, serif;
font-size: 14px;
font-weight: normal;
text-align: justify;
text-indent: 2em;
display: block;
position: absolute;
margin-top: 20px;
margin-left: 20px;
width: 200px;
height: auto;
background-color: #F0CBA2;
color: #5A2100;
padding: 10px;
border: 2px solid #5A2100;
white-space: normal !important;
}


And here's the pertinent HTML:

<div class="image">
      <a class="tooltip" href="#">    
      <img src="images/Meister.jpg" usemap="#Meister" style="border-style:none" alt="Meister Print"/>
      <map id="Meister" name="Meister">
      <area shape="rect" alt="" coords="173,121,214,179" href="images/Meister_Detail.jpg" title="" />
      <area shape="default" nohref="nohref" alt="Click Here for Detail" />
      </map>
      

      <span>A fossil footprint was discovered
      in June 1968 by William J. Meister on an expedition to Antelope Spring, 43 miles west of
      Delta, Utah. The sandal that seems to have crushed a living trilobite was 10 1/4 inches long
      and 3 1/2 inches wide; the heel is indented slightly more than the sole, as a human shoe print
      would be.</span></a>
      <area shape="rect" alt="" coords="173,121,214,179" href="images/Meister_Detail.jpg" title="" />
      <area shape="default" nohref="nohref" alt="Click Here for Detail" />
      </map>               
      <div class="caption">
      <p class="captions">Courtesy of Creation Evidences Museum</p>
      </div>
   </div>



If I place the tooltip entry prior to the image map it covers up the image map.
If I place it below without the line break it displays to the right and off the page depending on the display in IE.  Without the break it displays fime in FF.
Logged
Pages: [1] Print 
HostNed Forums  |  WEB DESIGN  |  Critique My Site  |  Topic: First "Public" Site « previous next »
Jump to: