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.

CSS Forum


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



Reply
Its all underlined? WHY???
Old 12-05-2007, 03:10 PM Its all underlined? WHY???
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
I am doing a web site and i'm doing it all in CSS. I am also using a language folder that gets the text using PHP.

But I have a problem in that all the text i write seems to be underlined in purple and the curser turns in to a hand when over the text - but its not a link- So i dont understand why its doing this.

Here is my CSS Script:
Code:
html,body{margin:0;padding:0}
body{font: 76% arial,sans-serif;text-align:center;background-color: #003366;}
p{margin:0 10px 10px}
a{display:block;color: #981793;padding:10px}
div#header h1{height:250px;line-height:80px;margin:0;
  padding-left:61px; background-image: url('img/bg.gif');
background-repeat: no-repeat;}
div#container{text-align:left;}
div#content p{line-height:1.4; color:#fff}
div#navigation{background:#000033;color: #fff}
div#extra{background:#003366;color: #fff}
div#footer{background: #000033;color: #fff}
div#footer p{margin:0;padding:5px 10px}
div#container{width:800px;margin:0 auto}
div#wrapper{float:left;width:100%}
div#content{margin: 0 275px 0 0}
div#navigation{float:left;width:150px;margin-left:-800px}
div#extra{float:left;width:250px;margin-left:-250px}
div#footer{clear:left;width:100%;}
h2{
}
h3{font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
text-align:justify;
text-decoration: none;
color:#fff;
}
h4{ font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
text-align:center;color:#fff;
}
h5{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-align:center;
color:#fff;
}
h6{ 
}
.nav {
height:35px; 
top:170px;
background: url(img/pro_line_0.gif) repeat-x; 
position:relative; 
font-family:arial, verdana, sans-serif; 
font-size:11px; 
width:678px; 
z-index:500;
}
.nav .table {
display:table; 
margin:0 auto;
}
.nav .select,
.nav .current {
margin:0; 
padding:0; 
list-style:none; 
display:table-cell; 
white-space:nowrap;
}
.nav li {
margin:0; 
padding:0; 
height:auto; 
float:left;
}
.nav .select a {
display:block; 
height:35px; 
float:left; 
background: url(img/pro_line_0.gif); 
padding:0 30px 0 30px; 
text-decoration:none; 
line-height:35px; 
white-space:nowrap; 
color:#ddd;
}
.nav .current a {
display:block; 
height:35px; 
float:left; 
background: url(img/pro_line_2.gif); 
padding:0 0 0 15px; 
text-decoration:none; 
line-height:35px; 
white-space:nowrap; 
color:#fff;
}
 
.nav .current a b {
display:block; 
padding:0 30px 0 15px; 
background:url(img/pro_line_2.gif) right top;
}
.nav .select a:hover, 
.nav .select li:hover a {
background: url(img/pro_line_1.gif); 
padding:0 0 0 15px; 
cursor:pointer; 
color:#fff;
}
.nav .select a:hover b, 
.nav .select li:hover a b {
display:block; 
float:left; 
padding:0 30px 0 15px; 
background:url(img/pro_line_1.gif) right top; 
cursor:pointer;
}
.nav .select_sub {
display:none;
}
/* IE6 only */
.nav table {
border-collapse:collapse; 
margin:-1px; 
font-size:1em; 
width:0; 
height:0;
}
.nav .sub {
display:table; 
margin:0 auto; 
padding:0; 
list-style:none;
}
.nav .sub_active .current_sub a, 
.nav .sub_active a:hover {
background:transparent; 
color:#f00;
}
.nav .select :hover .select_sub, 
.nav .current .show {
display:block; 
position:absolute; 
width:750px; 
top:35px; 
background:url(img/back_0.gif); 
padding:0; 
z-index:100; 
left:0; 
text-align:center;
}
.nav .current .show {
z-index:10;
}
.nav .select :hover .sub li a, 
.nav .current .show .sub li a {
display:block; 
float:left; 
background:transparent; 
padding:0 0px 0 0px; 
margin:0; 
white-space:nowrap; 
border:0; 
color:#444;
}
.nav .current .sub li.sub_show a {
color:#088; 
cursor:default; 
background:url(img/back_1.gif);
}
.nav .select :hover .sub li a:hover, 
.nav .current .sub li a:hover {
visibility:visible; 
color:#088; 
background:url(img/back_1.gif);
}
.lang_en{
position:absolute;
top:105px;
left:750px;}
.lang_es{
position:absolute;
top:105px;
left:820px;}
Can any one see an error of why idget my text <h3> underlined?

Thanks
__________________

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

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
 
Register now for full access!
Old 12-05-2007, 03:39 PM Re: Its all underlined? WHY???
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Sounds to me like you have an unclosed <a> tag in your HTML, but since you didn't post the HTML, I can't be certain.

That IE6 only thing needs to be in a separate CSS file and called using Conditional Comments, otherwise ALL browsers will read and use those rules.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-05-2007, 03:53 PM Re: Its all underlined? WHY???
opticbyte's Avatar
Skilled Talker

Posts: 86
Trades: 0
I would have to agree with ladynred... Since you have not defined any underline text decorations your h3 tag is most likely underline due to a previously unclosed <a> in your html.

You should be able to pinpoint the exact spot using the w3.org css and html validation tools.
__________________

opticbyte is offline
Reply With Quote
View Public Profile
 
Old 12-05-2007, 06:59 PM Re: Its all underlined? WHY???
coldturkey's Avatar
Extreme Talker

Posts: 211
Name: Rachel
Location: Spain
Trades: 3
Thank u very much - and im very pleased i didnt get told off with using bad CSS!
Gonna try it now and see if I can solve it!
__________________

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

coldturkey is offline
Reply With Quote
View Public Profile Visit coldturkey's homepage!
 
Reply     « Reply to Its all underlined? WHY???
 

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.25157 seconds with 12 queries