HighDots Forums  

4 Murray 2 (how to center bg img)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss 4 Murray 2 (how to center bg img) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Osgood
 
Posts: n/a

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 09:12 AM






Murray *TMM* wrote:

Quote:
Negative z-index is a bad thing. But I didn't use negative z-index, did I?

No, lol...... but I did, just as an experiment. If you don't use a
negative index the layer sits infront of the text and obscures it, even
though it is No 1 and the wrapper is No 2.



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

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 09:27 AM






I think this whole approach is No. 2, if you get my drift! 8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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:

Negative z-index is a bad thing. But I didn't use negative z-index, did
I?

No, lol...... but I did, just as an experiment. If you don't use a
negative index the layer sits infront of the text and obscures it, even
though it is No 1 and the wrapper is No 2.




Reply With Quote
  #13  
Old   
judas2
 
Posts: n/a

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 11:30 AM



#bkgdiv doesn't display at all!!!

Reply With Quote
  #14  
Old   
judas2
 
Posts: n/a

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 11:37 AM



to Osgood
I'd like that the bacground image is centered to the page and not to a div 80%
width. In fact the position is different.
I'm gonna use

body {
background-image: url(immag38.jpg);
background-repeat: no-repeat;
background-position: center center;
padding-top: 10px;
text-align: center;
}

<body bgproperties="fixed">

is not correct but it works
I got lemons and make lemonades ,-)
Thx a lot anyway!!!!


Reply With Quote
  #15  
Old   
Gary White
 
Posts: n/a

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 12:35 PM



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

Quote:
body bgproperties="fixed"

is not correct but it works

The above works only in IE.

Gary




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

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 12:42 PM



judas2 wrote:

Quote:
to Osgood
I'd like that the bacground image is centered to the page and not to a div 80%
width.
If the <div> is centred in the browsers viewport, which it
is,(margin-right: auto; margin-left: auto so will the background image
be centred in the browsers viewport, unless that's not what you want?




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

Default Re: 4 Murray 2 (how to center bg img) - 07-04-2004 , 12:48 PM



Osgood wrote:

Quote:
judas2 wrote:

to Osgood
I'd like that the bacground image is centered to the page and not to
a div 80% width.


If the <div> is centred in the browsers viewport, which it
is,(margin-right: auto; margin-left: auto so will the background image
be centred in the browsers viewport, unless that's not what you want?


How about sticking the background image centered in a wrapper <div> then
inserting another <div> inside the 'wrapper' with left and right margins
set. The image will be centered in the 'wrapper' but not centered to the
inserted <div>?



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.