HighDots Forums  

CSS doesn't work on colored backgrounds??

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS doesn't work on colored backgrounds?? in the Macromedia Dreamweaver forum.



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

Default CSS doesn't work on colored backgrounds?? - 11-01-2005 , 05:45 PM






I've spent several hours trying to figure this out. I have a simple style sheet
(font size in pixels, a font family, bold). The text I'm applying the style
sheet to has a body background of blue. When I add the style to the text and
preview it in my browser (Safari), the text has a letter-wide white space at
the end of the line of text, and a whole white block the width of the text in
the line below it!
I've tried changing all kinds of setting in the style sheet, like making the
background in the style sheet the same color, but that doesn't make a
difference. I am very frustrated. Anyone have a clue?

Thanks


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-01-2005 , 05:48 PM






Quote:
Anyone have a clue?
Not without seeing your CSS and your HTML, no.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Puffer67" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I've spent several hours trying to figure this out. I have a simple style
sheet
(font size in pixels, a font family, bold). The text I'm applying the
style
sheet to has a body background of blue. When I add the style to the text
and
preview it in my browser (Safari), the text has a letter-wide white space
at
the end of the line of text, and a whole white block the width of the text
in
the line below it!
I've tried changing all kinds of setting in the style sheet, like making
the
background in the style sheet the same color, but that doesn't make a
difference. I am very frustrated. Anyone have a clue?

Thanks




Reply With Quote
  #3  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-01-2005 , 06:22 PM



..oO(Murray *TMM*)

Quote:
Anyone have a clue?

Not without seeing your CSS and your HTML, no.
And this means: Post a URL. Don't post all your code here.

Micha


Reply With Quote
  #4  
Old   
Puffer67
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-01-2005 , 06:36 PM



Okay.... Here's another weird thing. I've been previewing this on Safari all
day, but hadn't uploaded up to the server, because I was having problems with
the page and the white lines on it. I uploaded it to the server so you could
see the results, but the white lines are not there. Although the spacing
between dates in the text is gone too. So my html preview has the corrrect
spacing, but white lines, and once it's on the server, it has no white lines,
but the correct spacing is gone....

Here's my style sheet:

.DNHbodytext {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #000000;
}

And here some code from the middle of the gig list:

<span class="DNHbodytext">
09/15/2005 10:00 PM - HeadHunters <br>
Red River and 8th, Austin, TX 78701,US - $5</span>
<span class="DNHbodytext">
09/11/2005 10:00 PM - The Velvet Spade <br>
912 Red River, Austin , TX 78701,US - NO COVER<br>
Out on the patio once again</span>

The page online is here: http://www.davesnothere.biz/05Test/pages/gigs.html
A screenshot of the preview on my browser is here:
http://www.davesnothere.biz/05Test/pages/DNHshot.jpg

Thanks!


Reply With Quote
  #5  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-01-2005 , 08:27 PM



There's no apparent relationship between the CSS you show, the symptoms you
describe, and the HTML you show. Can you say again what the problem is?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Puffer67" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Okay.... Here's another weird thing. I've been previewing this on Safari
all
day, but hadn't uploaded up to the server, because I was having problems
with
the page and the white lines on it. I uploaded it to the server so you
could
see the results, but the white lines are not there. Although the spacing
between dates in the text is gone too. So my html preview has the corrrect
spacing, but white lines, and once it's on the server, it has no white
lines,
but the correct spacing is gone....

Here's my style sheet:

.DNHbodytext {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #000000;
}

And here some code from the middle of the gig list:

span class="DNHbodytext"
09/15/2005 10:00 PM - HeadHunters <br
Red River and 8th, Austin, TX 78701,US - $5</span
span class="DNHbodytext"
09/11/2005 10:00 PM - The Velvet Spade <br
912 Red River, Austin , TX 78701,US - NO COVER<br
Out on the patio once again</span

The page online is here:
http://www.davesnothere.biz/05Test/pages/gigs.html
A screenshot of the preview on my browser is here:
http://www.davesnothere.biz/05Test/pages/DNHshot.jpg

Thanks!




Reply With Quote
  #6  
Old   
Puffer67
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-01-2005 , 08:53 PM



I get white "lines" the same dimensions as my text below each line of that
text. That happens when I preview in Safari from Dreamweaver. But when I upload
the html page and view it online, the white areas are gone, but the formatting
is gone from the text too.
It's just too frustrating. I'm just going to use font tags and not CSS. It may
not be as compatible between browsers, but I've spent too much time on this.
Thanks anyway.


Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-02-2005 , 07:31 AM



If what you are seeing is real, then it would have nothing to do with CSS.
Of course, we can't know what it might be caused by without seeing the whole
page. Can you post a link - please?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Puffer67" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I get white "lines" the same dimensions as my text below each line of that
text. That happens when I preview in Safari from Dreamweaver. But when I
upload
the html page and view it online, the white areas are gone, but the
formatting
is gone from the text too.
It's just too frustrating. I'm just going to use font tags and not CSS. It
may
not be as compatible between browsers, but I've spent too much time on
this.
Thanks anyway.




Reply With Quote
  #8  
Old   
Puffer67
 
Posts: n/a

Default Re: CSS doesn't work on colored backgrounds?? - 11-02-2005 , 07:37 PM



The links WERE in the above posts. But I've taken them down now. (I think...)
After a whole day, the weird behavior stopped. It's got to be either a glitch
in my Dreamweaver's preview html function, or a glitch with Safari. Anyway, it
stopped. Weird, strange, and very frustrating, because I won't be able to
prevent it if it happens again.
Anyway, thanks for your posts.

signing off of this thread,
puffer


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 - 2009, Jelsoft Enterprises Ltd.