HighDots Forums  

Incosistant style in style sheet and html doc

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Incosistant style in style sheet and html doc in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Warren Machanik
 
Posts: n/a

Default Incosistant style in style sheet and html doc - 07-24-2006 , 04:16 PM






I am having problems with applying a style on a style sheet.

I have created a div and created a class. In the style sheet file I did the
following:

div.TopBar {
background: Silver url(Images/BlueBar.jpg) repeat-x;
}

In the html I did the following:


Contact Us


And I do not get the background bar that is the image.

If I do an "inline" style as below:


Contact Us


Then it works. What gives is it perhaps my html header? Do I need to change
the doctype:

<div class="TopBar" style="background: Silver url(Images/BlueBar.jpg)
repeat-x"><a href="pages/contactus.htm">Contact Us</a><BR></div>



Reply With Quote
  #2  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Incosistant style in style sheet and html doc - 07-25-2006 , 06:24 AM







Warren Machanik wrote:

Quote:
I am having problems with applying a style on a style sheet.
Don't multi-post.

Do post a URL to the affected page.

These problems are sensitive to typos. It's too much wasted effort to
try and debug a fragment that probably isn't even the same as the real
page with the problem. If you don't post URLs, then most useful people
will simply ignore you.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.