Dynadot โ€” .com Registration $8.99

Div Tags

Spaceship 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
•••
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
•••
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
•••
Can you cut and paste what you have so we can see it?
 
0
•••
Code:
<div style="margin:auto"></div>

Try that, it should center the div horizontally in the page. Does that work?
 
0
•••
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
•••
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
•••
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
•••
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
•••
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back