PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Adding a text layer over a sliced PS image
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Adding a text layer over a sliced PS image

Réponse
 
LinkBack Outils de la discussion
Vieux 01/07/2008, 13h14   #1
Phyto-Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Adding a text layer over a sliced PS image

Having trouble positioning a text layer over a PS sliced image.

The sliced image is positioned relative to the center of the page (so it
appears in the same place regardless of monitor size or resolution, and that's
where I want it).

I can position the layer in Dreamweaver, but when previewed in the browser,
the test layer moves to the left -- apparently being positioned relative to the
left side of the screen.

Is there any way to position a text layer so that it is position relative to
the center of the page (and therefore reliably will appear on top of an image
also positioned relative to the center of the page)?

Any suggestions?

  Réponse avec citation
Vieux 01/07/2008, 13h21   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding a text layer over a sliced PS image

This is a bad approach. Consider what will happen to your careful alignment
if someone resizes their text in their browser. If you must place text over
an image, the best way to do it is to make the image the background of some
container, and then use CSS (margins or padding) to nudge the text into the
desired location location. You will still have the same problem, though.

> I can position the layer in Dreamweaver, but when previewed in the
> browser,
> the test layer moves to the left -- apparently being positioned relative
> to the
> left side of the screen.


That's how absolutely positioned elements work when they are not within some
other positioned element. The zero coordinates default to the <body> tag,
i.e., the upper, left-hand corner of the browser viewport.

> Is there any way to position a text layer so that it is position relative
> to
> the center of the page (and therefore reliably will appear on top of an
> image
> also positioned relative to the center of the page)?


Certainly, but you will have to understand CSS positioning to accomplish it.

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


"Phyto-Man" <webforumsuser@macromedia.com> wrote in message
news:g4d72q$dab$1@forums.macromedia.com...
> Having trouble positioning a text layer over a PS sliced image.
>
> The sliced image is positioned relative to the center of the page (so it
> appears in the same place regardless of monitor size or resolution, and
> that's
> where I want it).
>
> I can position the layer in Dreamweaver, but when previewed in the
> browser,
> the test layer moves to the left -- apparently being positioned relative
> to the
> left side of the screen.
>
> Is there any way to position a text layer so that it is position relative
> to
> the center of the page (and therefore reliably will appear on top of an
> image
> also positioned relative to the center of the page)?
>
> Any suggestions?
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h17.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09351 seconds with 10 queries