logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-28-2011, 11:32 AM   #1
b3w
 
Join Date: Sep 2011
Posts: 3
Default centering content on any screen size

hello !

i'm trying to center an image with a width of 980 px so that it will always be centered, even on a 1920x1200 screen

i followed this tutorial by Mike Crone (http://www.dreamweaverclub.com/css-center-content.php) and the left and right centering works fine - but the image is always locked to the top of the screen, not with equal amounts of white space between the top and the bottom (what i would like!)

if anyone could advise me i'll be very appreciative, thanks in advance
b3w is offline   Reply With Quote
Old 09-28-2011, 01:44 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

What image?
Link please.
domedia is offline   Reply With Quote
Old 09-29-2011, 02:10 AM   #3
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

Jim,
Image set to position fixed with a ___% margin-top?
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 09-29-2011, 08:51 AM   #4
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Here is an old thread where I gave an example for centering an element horizontally and vertically.
http://www.dreamweaverclub.com/forum...ad.php?t=34354
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 09-29-2011, 10:36 AM   #5
b3w
 
Join Date: Sep 2011
Posts: 3
Default

hi guys, thanks for the tips ... here is the link http://tinyurl.com/43fc3nb
i think have managed to do it but i don't really understand how
b3w is offline   Reply With Quote
Old 09-29-2011, 10:39 AM   #6
b3w
 
Join Date: Sep 2011
Posts: 3
Default

PS. i was testing it on ViewLikeUs
b3w is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com