HighDots Forums  

Incosistancy with style sheet and html - proper

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


Discuss Incosistancy with style sheet and html - proper in the Cascading Style Sheets forum.



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

Default Incosistancy with style sheet and html - proper - 07-24-2006 , 04:31 PM






I am a relative newbee

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:

"<div class="TopBar">
<a href="pages/contactus.htm">Contact Us</a>
</div>"

And I do not get the background bar that is the image. If I do an "inline"
style as below:

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

Then it works. What gives?

If you do not see the html instead you see a a href then please check source
code, as I do not know how to post without html being converted



Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: Incosistancy with style sheet and html - proper - 07-24-2006 , 05:17 PM






Warren Machanik wrote:
Quote:
I am a relative newbee

A nephew? 3rd cousin twice removed?

Quote:
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:
[...]

Please provide and URL to a test case.
(Although I suspect a typo somewhere...)

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #3  
Old   
Warren Machanik
 
Posts: n/a

Default Re: Incosistancy with style sheet and html - proper - 07-26-2006 , 03:39 PM



I figured it out. The problem was the image path.

In the <link href....
I was using a stylesheet in a subdirectory of the root, the image directory
was also off the root, so it did not find it

"Jim Moe" <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote

Quote:
Warren Machanik wrote:
I am a relative newbee

A nephew? 3rd cousin twice removed?

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:
[...]

Please provide and URL to a test case.
(Although I suspect a typo somewhere...)

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)



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.