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
Old 08-18-2009, 05:39 PM New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
Hey all. I'm new to the site and working on my first substantial page.

I'm having a small CSS issue that is leaving me a bit perplexed. I'm hoping there is a simple solution that someone will be familiar with so I will keep it short and elaborate if need be.

I'm linking to a stylesheet with the following:

Code:
<link rel="stylesheet" type="text/css" href="style.css" />
At first it was working perfectly with some of the following:

Code:
table#links  {

	background-color:#CC9900;
	width: 100%;
	height: 25px;
	
	
}

td.top   {

	vertical-align: top
}
Now when I attempt to add some style features to the stylesheet the formatting wont accept, however, if I just use SCRIPT tags on the page I am trying to format in the header it formats just fine.

Any ideas?

Thanks in advance

-Z
Zaphiro is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-18-2009, 06:05 PM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why would you be using <script> tags to add formatting/styling?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2009, 06:12 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
It wasn't working when I tried just using the stylesheet. Which is my whole problem.

Let me elaborate:

Code:
A:link {text-decoration: none; color:#FF0000}
A:visited {text-decoration: none; color:#FFFFFF}
A:active {text-decoration: none}
A:hover {text-decoration: none; color: #CC9900;}
When I place this code into the stylesheet and save it my links remain unchanged.

However when I place this exact same code in script tags in the head of the page it's working fine..

I would obviously prefer to not use the script tag.

Does this help?

Edit: Sorry just realized I was saying SCRIPT instead of STYLE.

Last edited by Zaphiro; 08-18-2009 at 06:26 PM.. Reason: oops.
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 06:31 PM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not really. I still don't see why you are using <script> tags for styles?

and BTW your pseudo classes are in the srong order
http://www.webmaster-talk.com/css-fo...tml#post288033
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2009, 06:36 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
You must have been replying when I edited... I'm using <style> and often type <script> accidentally. Thanks for the link and I've changed the order.

Now that I've hopefully cleared up that I am using <style> and not <script> any other rationale?

-Z
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 06:40 PM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Not specially;

HOWEVER! If you show us the actual problem rather than something you may have mis-typed, we will be able to tell you if you have mis-typed something there as well.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-18-2009, 06:50 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
HTML

HTML Code:
<span class="item">
                

You are Here: <a href="/main2.php">Home</a>&nbsp;>&nbsp;<a href="/cards.php">Cards</a>
		
        		</span>
CSS

Code:
A:link {text-decoration: none; color:#FF0000}
A:visited {text-decoration: none; color:#FFFFFF}
A:hover {text-decoration: none; color: #CC9900;}
A:active {text-decoration: none}

.item		{
	
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size:12px;
	color: #ffffff;

}
The span formatting is working fine but not the "a" formatting. Like I tried to state before it WILL work if I use the following in the header..

Code:
<style>

A:link {text-decoration: none; color:#FF0000}
A:visited {text-decoration: none; color:#FFFFFF}
A:hover {text-decoration: none; color: #CC9900;}
A:active {text-decoration: none}

</style>
Thanks for your help Chris. I'm fairly new to this and hope I'm not frustrating you too much.

-Z
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 08:11 PM Re: New Guy: Small Issue
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Looks like a specificity issue. Try it like this instead:

.item a:link etc., etc. .. that will target the link inside the <span>

Why are you putting a span around that anyway ??
__________________
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 08-18-2009, 08:17 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
I'll try that...

I have a black background, it was just a quick way to make the text white so it's visible.
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-18-2009, 08:22 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
Still no luck :shrug:

I'm at a loss...
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-19-2009, 07:39 AM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just give us a link to the page with the problem
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-19-2009, 02:18 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
www.gravurecraft.com/urns.php

If you look right beside the search bar (which doesn't work yet) you will see Home > Urns links

www.gravurecraft.com/cards.php

On this page you can see the difference.

Try and go easy on me, it's my first page remember
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-19-2009, 02:32 PM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Obviously I'm missing something because I can't see a difference.

are you clearing your browser cache between editing and uploading the stylesheet?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-19-2009, 02:37 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
Ok... So why is it I must do that for style sheets but not coding changes? Everytime I change like a border or some text it updates perfectly

Last edited by Zaphiro; 08-19-2009 at 02:40 PM..
Zaphiro is offline
Reply With Quote
View Public Profile
 
Old 08-19-2009, 02:42 PM Re: New Guy: Small Issue
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
depends on how the server is set for content expiry.

scripted pages (php,asp,aspx etc) are always expired immediately because they are created at the instant of delivery.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-19-2009, 02:44 PM Re: New Guy: Small Issue
Novice Talker

Posts: 9
Name: Matt
Trades: 0
Well that worked. Thanks a lot, I figured it was something simple, sorry to make it seem so complicated. I guess I'll always clear it to be safe from here on out. Thanks again!
Zaphiro is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to New Guy: Small Issue
 

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