Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Studio52 #1
Center background image
As you may understand, I have a web site.
One of the things I want to do on this sit is center the background image on
the top,
but what ever I try to do it just tiles to the left top.
Can you help me?
Studio52 Guest
-
How to center image in canvas
Having trouble with centering variable size images inside a canvas. As i understand it, centering can be done with by setting .x and .y... -
Aligning image to the center of the page
Hi, I'm quite a newbie to designing webpage. I know how to align an image, or picture to the center adjustment horizontally, but unable to do it... -
Center image using position: absolute?
I have an image (it's a navigation bar) that should appear with a specifc vertical position; so I'm using absolute positioning to put it a precise... -
Can't center image on HP 1115
I'm trying to print an 8X10 image on 8.5X11 paper landscape. The center image box on the print preview page is checked and Elements generates an... -
center the background image
takashi0808 webforumsuser wrote: Try it with CSS: body {background: #rgb url(/path/to/image) center;} Replace the 'rgb' with a background... -
Murray *ACE* #2
Re: Center background image
Use CSS - background-position:center top;
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Studio52" <webforumsuser@macromedia.com> wrote in message
news:e803qq$nsf$1@forums.macromedia.com...> As you may understand, I have a web site.
> One of the things I want to do on this sit is center the background image
> on
> the top,
> but what ever I try to do it just tiles to the left top.
> Can you help me?
>
Murray *ACE* Guest
-
-
Murray *ACE* #4
Re: Center background image
No, not as a page background image. It's very easy in CSS.
Change this -
</head>
to this -
<style type="text/css">
<!--
body { background-image:url(whatever.jpg); background-position:center top; }
-->
</style>
</head>
on each page, and you have it.
Alternatively, you could put this into a plain text file -
body { background-image:url(whatever.jpg); background-position:center top; }
(make sure your pathing is correct)
and save it as "whatever.css", and then you would make each page like this -
<link rel="stylesheet" type="text/css" media="screen" href="whatever.css">
Either way works, but the latter is more flexible since a single change to
that file will now reflect in every page that uses it.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Studio52" <webforumsuser@macromedia.com> wrote in message
news:e82k3j$ssb$1@forums.macromedia.com...> So you can't do it in html?
Murray *ACE* Guest
-
-
Murray *ACE* #6
Re: Center background image
You're welcome. Learning CSS is the very best way to drive your skills to
the next level.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Studio52" <webforumsuser@macromedia.com> wrote in message
news:e8dcu2$55s$1@forums.macromedia.com...> It worked,
> thank you very mutch!
Murray *ACE* Guest



Reply With Quote

