HighDots Forums  

Center background image 2 (help me Micha! ;-)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Center background image 2 (help me Micha! ;-) in the Macromedia Dreamweaver forum.



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

Default Center background image 2 (help me Micha! ;-) - 07-03-2004 , 04:00 AM






I asked:
A customer of mine LOVES very much his writing paper. So he would like that I
make the web pages of his site with his logo as background. The logo has to
display once and be centered at the browser page both vertically and
orizontally (even when you narrow it).

Micha very kindly answered

Use CSS and the background property, e.g.

body {
background: #RGB url(/path/to/image) no-repeat center
}

HTH
Micha


Well, it works fine until I put some content inside. In fact if I put a Div or
a tabel witha a lot of text inside and then i scroll the browser window the
background image is not correctly displayed (looks broken in different lines)

I work on Mac, and the problem is only with IE (as usually) ;-)

Thx!!!



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

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 04:23 AM






I resolved like this.

<body bgproperties="fixed">

is it correct?
It works fine?

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

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 07:31 AM



No - it's proprietary to IE, and it's not valid code.

What is it about Micha's explanation that you do not understand?

body {
background: #RGB url(/path/to/image) no-repeat center
}


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

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

Quote:
I resolved like this.

body bgproperties="fixed"

is it correct?
It works fine?



Reply With Quote
  #4  
Old   
Linda Rathgeber-TMM
 
Posts: n/a

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 07:32 AM



judas2 wrote:

Quote:
I resolved like this.

body bgproperties="fixed"

is it correct?
Yes. That's the one. :-)



--
Cheers,
Linda Rathgeber
----------------------------------------------------------------------
Learn Fireworks Visual Effects with "RAZZLE DAZZLE"
http://www.webdevbiz.com/pwf/
Victoriana | http://www.projectseven.com
Playing with Fire | http://www.playingwithfire.com
Team MM Fireworks Volunteer | www.macromedia.com/go/team
----------------------------------------------------------------------



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

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 07:36 AM



You mean the wrong one?

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

"Linda Rathgeber-TMM" <lightly (AT) sc (DOT) rr.com> wrote

Quote:
judas2 wrote:

I resolved like this.

body bgproperties="fixed"

is it correct?

Yes. That's the one. :-)



--
Cheers,
Linda Rathgeber
----------------------------------------------------------------------
Learn Fireworks Visual Effects with "RAZZLE DAZZLE"
http://www.webdevbiz.com/pwf/
Victoriana | http://www.projectseven.com
Playing with Fire | http://www.playingwithfire.com
Team MM Fireworks Volunteer | www.macromedia.com/go/team
----------------------------------------------------------------------




Reply With Quote
  #6  
Old   
Linda Rathgeber-TMM
 
Posts: n/a

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 07:49 AM



Murray *TMM* wrote:

Quote:
You mean the wrong one?
Are you still designing for Netscape 4x, Murray? :-)


--
Cheers,
Linda Rathgeber
----------------------------------------------------------------------
Learn Fireworks Visual Effects with "RAZZLE DAZZLE"
http://www.webdevbiz.com/pwf/
Victoriana | http://www.projectseven.com
Playing with Fire | http://www.playingwithfire.com
Team MM Fireworks Volunteer | www.macromedia.com/go/team
----------------------------------------------------------------------



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

Default Re: Center background image 2 (help me Micha! ;-) - 07-03-2004 , 08:06 AM



No, but I am trying to use valid HTML when I code! 8)

Inline, proprietary code like that is just the wrong way to accomplish most
things, particularly when there is a perfectly valid (and simple) way to do
it otherwise....

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

"Linda Rathgeber-TMM" <lightly (AT) sc (DOT) rr.com> wrote

Quote:
Murray *TMM* wrote:

You mean the wrong one?

Are you still designing for Netscape 4x, Murray? :-)


--
Cheers,
Linda Rathgeber
----------------------------------------------------------------------
Learn Fireworks Visual Effects with "RAZZLE DAZZLE"
http://www.webdevbiz.com/pwf/
Victoriana | http://www.projectseven.com
Playing with Fire | http://www.playingwithfire.com
Team MM Fireworks Volunteer | www.macromedia.com/go/team
----------------------------------------------------------------------




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.