HighDots Forums  

Positioning Background Image

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Positioning Background Image in the Macromedia Dreamweaver forum.



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

Default Positioning Background Image - 03-28-2009 , 11:34 AM






I'm new to Dreamweaver CS3 and I have what I hope is a slight problem. Please
try and help me...
I've created my body, wrappper and working areas with CSS Rules and Divs. My
body has a top margin of 0, my wrapper has a top margin of 0, when I insert a
background image in the wrapper through the background selection info, the
background image appears in the right place in design view with the overlaying
text in the correct place too, BUT, when previewed in Safari and Opera my text
is where it should be but the background image has dropped from the top browser
by a good centimeter and not positioned where it should be. My wrapper size is
800x1000pixels, my background image is 800x1000pixels. This should be simple
but I don't know where I have gone wrong.
Help.....


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

Default Re: Positioning Background Image - 03-28-2009 , 12:24 PM






A link to the page, please?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


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

Quote:
I'm new to Dreamweaver CS3 and I have what I hope is a slight problem.
Please
try and help me...
I've created my body, wrappper and working areas with CSS Rules and Divs.
My
body has a top margin of 0, my wrapper has a top margin of 0, when I
insert a
background image in the wrapper through the background selection info, the
background image appears in the right place in design view with the
overlaying
text in the correct place too, BUT, when previewed in Safari and Opera my
text
is where it should be but the background image has dropped from the top
browser
by a good centimeter and not positioned where it should be. My wrapper
size is
800x1000pixels, my background image is 800x1000pixels. This should be
simple
but I don't know where I have gone wrong.
Help.....



Reply With Quote
  #3  
Old   
WILLO THE WISP
 
Posts: n/a

Default Re: Positioning Background Image - 03-28-2009 , 02:19 PM



Have you tried this at the head of your css to cancel out any margins/padding related to browser

* {
margin : 0 auto;
padding : 0;
}

Reply With Quote
  #4  
Old   
Maria-Cristina
 
Posts: n/a

Default Re: Positioning Background Image - 03-28-2009 , 02:52 PM



Thank you for that information. I had already tried that with no success. I
have spent hours reading books and researching the problem with no success to
date. I have another kind member who will also come back to me. Any other
suggestions ?
Thank you for you time and interest.
Regards
MariaCristina


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

Default Re: Positioning Background Image - 03-28-2009 , 02:59 PM



Quote:
margin : 0 auto;
This would not be approriate for that purpose.

If you want to only cancel margins as a beginning step, then just use -

margin:0;

Adding the "auto" could cause unexpected behavior on block elements.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"WILLO THE WISP" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Have you tried this at the head of your css to cancel out any
margins/padding related to browser

* {
margin : 0 auto;
padding : 0;
}


Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Positioning Background Image - 03-28-2009 , 03:01 PM



Please post a link to your page.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Maria-Cristina" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thank you for that information. I had already tried that with no success.
I
have spent hours reading books and researching the problem with no success
to
date. I have another kind member who will also come back to me. Any other
suggestions ?
Thank you for you time and interest.
Regards
MariaCristina



Reply With Quote
  #7  
Old   
GarryCT
 
Posts: n/a

Default Re: Positioning Background Image - 03-28-2009 , 03:18 PM



Not an answer, per se, but I would suggest, to troubleshoot, to insert a border
rule in the wrapper div, i.e.; border: 1px solid red; to see where the
additional padding/margin is happening. Your image should be affixed to the
upper-left edge of the div. It show you where the problem lies.


Reply With Quote
  #8  
Old   
Maria-Cristina
 
Posts: n/a

Default Re: Positioning Background Image - 03-29-2009 , 04:31 AM



GarryCT.
By applying the 1 pixel border has in fact taken the whole background to the
top browser. I can easily change the colour to suit the design to keep the
background at the top but surely I should not need to do this...
Thank you....


Reply With Quote
  #9  
Old   
Maria-Cristina
 
Posts: n/a

Default Re: Positioning Background Image - 03-29-2009 , 04:34 AM



Murray,
I e-mailed you the code. I hope it makes sense..
Thank you.

Reply With Quote
  #10  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Positioning Background Image - 03-29-2009 , 07:43 AM



Not likely that it will get to me unfortunately. Do you not feel
comfortable posting a link? That way everyone can participate in the
discussion.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Maria-Cristina" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Murray,
I e-mailed you the code. I hope it makes sense..
Thank 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 - 2009, Jelsoft Enterprises Ltd.