NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page Div Tags

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-31-2005, 10:09 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Nov 2004
Posts: 59
aal814 is an unknown quantity at this point
 



Div Tags


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 !
aal814 is offline  
Old 10-31-2005, 03:41 PM   #2 (permalink)
NamePros Regular
 
Rowan W's Avatar
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
Rowan W will become famous soon enough
 



To align text in the center of a div, just do this:
Code:
<div style="text-align:center"></div>
Rowan W is offline  
Old 10-31-2005, 11:46 PM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Nov 2004
Posts: 59
aal814 is an unknown quantity at this point
 



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
aal814 is offline  
Old 11-01-2005, 09:38 AM   #4 (permalink)
NamePros Regular
 
brewmonkey's Avatar
Join Date: Oct 2005
Posts: 240
brewmonkey is a jewel in the roughbrewmonkey is a jewel in the roughbrewmonkey is a jewel in the rough
 



Can you cut and paste what you have so we can see it?
brewmonkey is offline  
Old 11-01-2005, 10:09 AM   #5 (permalink)
Senior Member
Join Date: Jun 2004
Location: United Kingdom
Posts: 2,694
will7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud ofwill7 has much to be proud of
 



Code:
<div style="margin:auto"></div>
Try that, it should center the div horizontally in the page. Does that work?
__________________
Will Narburgh | Graphic design | Twitter | Email me
will7 is offline  
Old 11-01-2005, 03:49 PM   #6 (permalink)
NamePros Regular
 
Rowan W's Avatar
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
Rowan W will become famous soon enough
 



Originally Posted by will7
Code:
<div style="margin:auto"></div>
This should be:
????: NamePros.com http://www.namepros.com/web-design-discussion/136485-div-tags.html

Code:
<div style="margin:0 auto"></div>
You need the correct doctype for this to work in IE too.
Rowan W is offline  
Old 11-01-2005, 04:59 PM THREAD STARTER               #7 (permalink)
NamePros Member
Join Date: Nov 2004
Posts: 59
aal814 is an unknown quantity at this point
 



Originally Posted by Rowan W
This should be:
????: NamePros.com http://www.namepros.com/showthread.php?t=136485

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?
aal814 is offline  
Old 11-01-2005, 06:54 PM   #8 (permalink)
NamePros Regular
 
Rowan W's Avatar
Join Date: Dec 2004
Location: QLD, Australia
Posts: 713
Rowan W will become famous soon enough
 



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.
Rowan W is offline  
Old 11-01-2005, 07:25 PM   #9 (permalink)
NamePros Member
 
Steamfrog's Avatar
Join Date: Dec 2004
Posts: 37
Steamfrog is an unknown quantity at this point
 



Use relative placement your layers I bet are placed as absolute. Relative I belive should be relative to the parent Container (your centre frame)
__________________
Video-Tutes.com
100% Free Video Tutorials
Steamfrog is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger