Div Tags

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
Watch

aal814

Established Member
Impact
0
Hey guys, so in dreamweaver 2004 mx when we chose to use layers, it will be coded as a div tag.

Now if our template that is inside the table i have hade, is set to be aligned as center, how will i align the div tag to go center as well? cause when u maximize the internet window, the template moves to center it self, but the text and images i placed into the div tag doesnt.

Can someone suggest any ideas on how to fix this issue?

Thanks !
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
To align text in the center of a div, just do this:
Code:
<div style="text-align:center"></div>
 
0
Close
hey thanks for the help, however that is not my problem mate... my problem is that the original div tag like the tag doesnt centerize it self when i set the template in the table to centerize it self when for example u maxmize your internet window
 
0
Close
Can you cut and paste what you have so we can see it?
 
0
Close
Code:
<div style="margin:auto"></div>

Try that, it should center the div horizontally in the page. Does that work?
 
0
Close
will7 said:
Code:
<div style="margin:auto"></div>
This should be:

Code:
<div style="margin:0 auto"></div>

You need the correct doctype for this to work in IE too.
 
0
Close
Rowan W said:
This should be:

Code:
<div style="margin:0 auto"></div>

You need the correct doctype for this to work in IE too.

uhh how would i do that?
 
0
Close
Just copy the style in that div into your main div.

You would probably want this doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Stick it at the VERY TOP of the html.
 
0
Close
Use relative placement your layers I bet are placed as absolute. Relative I belive should be relative to the parent Container (your centre frame)
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back