Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2008, 01:59 AM   #1 (permalink)
Junior Member
 
Join Date: 09-06-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

dave9713 is liked by many
Centralizing a absolute DIV???

Is there a way to centralize an absoloute DIV?

Thanks a lot,

Dave
dave9713 is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 04-16-2008, 02:07 AM   #2 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,004
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Yep.

<div class="container"></div>


.container {
margin: 0px auto;
}
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-16-2008, 02:25 AM   #3 (permalink)
Junior Member
 
Join Date: 09-06-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

dave9713 is liked by many
Thanks chicgeek,

I am fairly new to all of this still so please bare with me

Is that not just one of the ways to centralise a normal DIV? The one I am trying to do is "absolute".

Please correct me if I am wrong
dave9713 is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-16-2008, 11:47 AM   #4 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,007
iTrader: 0 / 0%
Latest Blog:
None

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
There are many ways. Since absolute starts from 0,0 (if you specify both left and top parameters), the most popular way people use, which is not the easiest, is to use JavaScript to get the position of elements on the page to center things or position there div to where they want.

Just to center it, you could do what chicgeek said, or just do a div inside a div, the parent div being 100% width and 60%+ height, set the z-index to the top position, if you want it to be the top-most layer of course, and then do as chicgeek said for the inner div.
__________________
~Izzmo
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-16-2008, 02:42 PM   #5 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,004
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
What he said.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with absolute position overlapping divs devilzfan300 Coding Forum 8 11-22-2007 09:28 AM
Relavite or Absolute Links In Page Text? PAPABEAR1126 SEO Forum 3 02-05-2006 07:48 PM
Absolute best way to design navigation. newsguy Web Design Lobby 2 11-20-2004 12:37 PM
Netscape absolute path tiger Web Design Lobby 4 10-17-2003 05:21 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:18 PM.
© Copyright 2008 V7 Inc