Div Style not working from External CSS

This is a discussion on "Div Style not working from External CSS" within the Web Page Design section. This forum, and the thread "Div Style not working from External CSS are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 21st, 2007, 19:20
New Member
Join Date: Mar 2007
Location: England
Age: 99
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Div Style not working from External CSS [RESOLVED]

Hi guys, I'm having trouble getting div styles to work from an external style sheet.


I've confirmed the page using the div styles does link to the external CSS as I've used styles for other tags without problem. I can also define the div style inline within the page which indicates there's nothing wrong with my coding!

Here's what I have;

This is what is in the external CSS

div.duel
{
font-size: 18pt;
color:#FFFFFF;
}


and this is what is on the page;

<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../Default.css">
</style>
</head>
<body background="Background.jpg">

<center>
<div class="duel"> Work damn you, WORK! </div>
</center>

</body>
</html>



Is this coding right? Now I've simplified things in the hope that the mistake I'm making is here but I'll happily give any other information you may need to sort this out.

I'm at a complete loss as to why this isn't working. I've only recently gotten back into web design and I thought it must be something really simple but for the life of me can't find it!

Any feedback or advice would be greatly appreciated

SOLUTION!
Instead of 'div.duel' in the CSS, I used 'duel' by itself and it worked

Last edited by karinne; Mar 22nd, 2007 at 11:04.
Reply With Quote

  #2 (permalink)  
Old Mar 21st, 2007, 23:19
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Style not working from External CSS

If you could post your solution up here, that would be great. Forums are here to help people, and it may be that someone could gain some knowledge from your solution.
Reply With Quote
  #3 (permalink)  
Old Mar 22nd, 2007, 11:03
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Div Style not working from External CSS

You can't delete thread. If the members themselves find the solution to their own problems, we like them to post it so other members with the same problem can find a solution.

So ...I just rearranged the post so members can find the solution better
Reply With Quote
Reply

Tags
style, external, div, css

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Style sheet isnt working kaz Web Page Design 19 Dec 21st, 2007 01:10
new to css: what's the best way to insert image using the external style sheet? mad samuel Web Page Design 14 Aug 10th, 2007 17:52
Problems with external style sheets ronb Web Page Design 7 May 16th, 2007 19:18
***Help Needed accessing external Style Sheets*** shawn2000 Flash & Multimedia Forum 1 Nov 15th, 2006 22:32
Linking to an external style sheet ahm531 Web Page Design 6 Aug 31st, 2006 13:23


All times are GMT. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43