Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2055 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Two Problems: CSS and JS

Thread title: Two Problems: CSS and JS
Closed Thread    
    Thread tools Search this thread Display Modes  
12-15-2005, 03:00 AM
#1
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old  Two Problems: CSS and JS

Hi TF, if anyone can offer help, thank you in advance!

Here's the link to the website: www.whatsupgt.com/SP.php

------ CSS Problem ------

I have a problem with the horizontal navigation above the photo. It displays perfectly on Firefox, but on IE, the top border is missing.

Here's the HTML code:

Code:
<div id="horinav">

<ul>
<li><a id="current" href="" accesskey="h" title="The Home Page">HOME</a></li>
<li><a href="#" accesskey="a" title="Want to know more about us?">ABOUT</a></li>
<li><a href="#" accesskey="c" title="Got queries, feedbacks, or suggestions?">CONTACT</a></li>
<li><a href="#" accesskey="v" title="Find out how you can exploit your business">ADVERTISE</a></li>
</ul>

</div> <!--horinav closing tag-->
And here's the CSS:

Code:
#horinav {
	height: 27px;
	margin-top: 10px;
	padding-left: 1em;
	border-bottom: 3px #666666 solid;
}

#horinav ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

#horinav li {
	font-size: 14px;
	display: inline;
}

#horinav li a em{
	font-style: normal;
	font-weight: normal;
	text-decoration: underline;
}

#horinav li a:link, #horinav li a:visited {
	text-decoration: none;
	padding: 0.3em 1em !important;
	padding: 8px 7px 8px 7px;
	color: #666666;
	background-color: #FEFEFE;
	border-right: 2px solid #EEEEEE;
	border-top: 2px solid #EFEFEF;
	border-left: 1px solid #EEEEEE;
}

#horinav li a:hover, #horinav li a:active {
	color: #FFFFFF;
	background-color: #99CC00;
	border-right: 2px solid #EEEEEE;
	border-top: 2px solid #EFEFEF;
	border-left: 1px solid #EEEEEE;
}

#horinav li a#current {
	color: #FFFFFF;
	background-color: #99CC00;
	border-right: 2px solid #EEEEEE;
	border-top: 2px solid #EFEFEF;
	border-left: 2px solid #EEEEEE;
}
The navigation looks horrible on IE. If anyone can help with this, thanks in advanced.

------ Javascript Problem ------

Also, when I enter the website in IE, I get an "Internal Explorer Script Error".

Here's the screenshot:



The only javascript present on the website is the Javascript Tooltip, which I downloaded from a website, since I know nothing about Javascript.

I'm desperately trying to correct this since the appearance of this error may determine whether a visitor stays or leaves.

I appreciate anyone for trying to help.

12-15-2005, 03:52 AM
#2
seen.to is offline seen.to
seen.to's Avatar
Status: unusual suspect ™
Join date: Feb 2005
Location: Lancaster, PA from London UK
Expertise:
Software:
 
Posts: 1,814
iTrader: 0 / 0%
 

seen.to is on a distinguished road

  Old

You need to mess with either your padding or margin in #horinav ul

Setting either to 10px will get your top margin to show but it won't look quite as expected so experiment with both to get your desired effect

Of course this will mess things up in FireFox but you can fix that with a quick

html>body #horinav ul { margin: 0; padding: 0;}

after the main style.

HTH

12-15-2005, 02:36 PM
#3
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

Thanks seen.to

It seems that I didn't have to put the extra piece of code, because Firefox was unaffected. I just had to put the margin: 10px

Now, for that Javascript... Is anyone Javascript specialised?

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed