HighDots Forums  

CSS Background Image Question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Background Image Question in the Macromedia Dreamweaver forum.



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

Default CSS Background Image Question - 12-01-2005 , 12:35 PM






I have changed how I am laying out my page to a header and two column layout.
The page container has a background image that should simulate a faux column
down the left side.

For some reason I can't get the faux column to show up in FF. I have
validated the css and the html already.

Can anyone tell me why this column is visible in IE (pc) but not in FF?

http://www.echowebs.com/wounaan/template.cfm

Thanks!
Chris


Reply With Quote
  #2  
Old   
cluksha
 
Posts: n/a

Default Re: CSS Background Image Question - 12-01-2005 , 12:49 PM






Oddly enough - If I put a blank space in the clearing div - the container div is forced to be full heigh.

I guess I wonder why it requires the clearing div to reach full height?

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

Default Re: CSS Background Image Question - 12-01-2005 , 01:08 PM



Try using this to clear -

<br style="clear:both;">

--
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
==================


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

Quote:
I have changed how I am laying out my page to a header and two column
layout.
The page container has a background image that should simulate a faux
column
down the left side.

For some reason I can't get the faux column to show up in FF. I have
validated the css and the html already.

Can anyone tell me why this column is visible in IE (pc) but not in FF?

http://www.echowebs.com/wounaan/template.cfm

Thanks!
Chris




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

Default Re: CSS Background Image Question - 12-01-2005 , 01:12 PM



cluksha wrote:

Quote:
Oddly enough - If I put a blank space in the clearing div - the container div is forced to be full heigh.

I guess I wonder why it requires the clearing div to reach full height?

If you use this code for the clearing <div> it should work

..clearing {
clear:both;
height: 1px;
overflow: hidden;
line-height: 1px;
margin-top:-1px;
}


However the best method IS to give the <div> some content, not a nbsp;
but a 1x1px image.

Clearing <div> css and nbsp; can have a varied effect cross browser,
depending on where you use it in the design and how critical pixel
perfect accuracy is to you.

The gif is the most solid method but youll still have a 1px descrepency
but it may be a better solution in certain circumstances.



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

Default Re: CSS Background Image Question - 12-01-2005 , 01:25 PM



<br> is the best. It's not structural and it's not semantic....

--
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
==================


"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
cluksha wrote:

Oddly enough - If I put a blank space in the clearing div - the container
div is forced to be full heigh.

I guess I wonder why it requires the clearing div to reach full height?


If you use this code for the clearing <div> it should work

.clearing {
clear:both;
height: 1px;
overflow: hidden;
line-height: 1px;
margin-top:-1px;
}


However the best method IS to give the <div> some content, not a nbsp; but
a 1x1px image.

Clearing <div> css and nbsp; can have a varied effect cross browser,
depending on where you use it in the design and how critical pixel perfect
accuracy is to you.

The gif is the most solid method but youll still have a 1px descrepency
but it may be a better solution in certain circumstances.




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

Default Re: CSS Background Image Question - 12-01-2005 , 01:30 PM



Murray *TMM* wrote:

Quote:
br> is the best. It's not structural and it's not semantic....

I use it regularly but it also creates space, which can be undesirable
in some circumstances. So I believe the best method is the 1x1px gif as
it won't cause so many discrepencies. I don't use it much as most of
what I do is experimental but I know its there when I need it.



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

Default Re: CSS Background Image Question - 12-01-2005 , 01:37 PM



Show me where it creates space, 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
==================


"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
Murray *TMM* wrote:

br> is the best. It's not structural and it's not semantic....


I use it regularly but it also creates space, which can be undesirable in
some circumstances. So I believe the best method is the 1x1px gif as it
won't cause so many discrepencies. I don't use it much as most of what I
do is experimental but I know its there when I need it.




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

Default Re: CSS Background Image Question - 12-01-2005 , 01:47 PM



Thanks Murray. I have chosen the <br style="clear:both;">method. It seems to do some good.

Anyway -thanks for hthelp - both of you.

Chris

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

Default Re: CSS Background Image Question - 12-01-2005 , 02:02 PM



You're welcome!

--
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
==================


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

Quote:
Thanks Murray. I have chosen the <br style="clear:both;">method. It
seems to do some good.

Anyway -thanks for hthelp - both of you.

Chris



Reply With Quote
  #10  
Old   
cluksha
 
Posts: n/a

Default Re: CSS Background Image Question - 12-01-2005 , 02:47 PM



Ok so it don't look so hot on the mac. Not sure what browser - but I will let
you know when I find out.)

Check this out...

http://www.echowebs.com/wounaan/screen-cap.jpg

Any ideas why the content is being forced down and the container is not using
it's background?



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.