Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

Does anyone know what the setting is to center a layer?

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Does anyone know what the setting is to center a layer?

Postby imroue » Wed Nov 27, 2002 11:13 pm

For example:


quote:
--------------------------------------------------------------------------------
<div id="Layer7" style="position:absolute; width:780px; height:16px; z-index:1; left: 0px; top: 632px; background-color: #FF9900; layer-background-color: #FF9900; border: 1px none #000000;">
--------------------------------------------------------------------------------



Where/what would i put in the Position or anything to make this layer center on the page?
User avatar
imroue
New php-forum User
New php-forum User
 
Posts: 62
Joined: Fri Oct 11, 2002 6:53 am

Re: Does anyone know what the setting is to center a layer?

Postby admin » Thu Nov 28, 2002 3:01 am

imroue wrote:For example:


quote:
--------------------------------------------------------------------------------
<div id="Layer7" style="position:absolute; width:780px; height:16px; z-index:1; left: 0px; top: 632px; background-color: #FF9900; layer-background-color: #FF9900; border: 1px none #000000;">
--------------------------------------------------------------------------------



Where/what would i put in the Position or anything to make this layer center on the page?



Hello

did you try this ?

--------------------------------------------------------------------------------
<div id="Layer7" style="position:center; width:780px; height:16px; z-index:1; left: 0px; top: 632px; background-color: #FF9900; layer-background-color: #FF9900; border: 1px none #000000;">
--------------------------------------------------------------------------------

Bye
User avatar
admin
Site Admin
Site Admin
 
Posts: 123
Joined: Wed Apr 17, 2002 7:49 am
Location: Rome, Italy

Postby Oleg Butuzov » Thu Nov 28, 2002 3:26 am

or simple <div align=center></center> =)
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby liquedus » Tue Apr 08, 2003 5:26 am

yes, use <div align="center"></div> since this is probably the easiest way of doing it.
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.