Centering an image on my web page

This is a discussion on "Centering an image on my web page" within the Web Page Design section. This forum, and the thread "Centering an image on my web page are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 21st, 2007, 08:55
New Member
Join Date: Sep 2007
Location: Antwerp, Belgium
Age: 33
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Centering an image on my web page

I have a webpage which was developped using FireWorks, so exported the image an linked it to a webpage.

Now I need to center the image on the page, but so far I only managed to center it in the length. The image is still on the top of the page.

And I also need to add some shade to it.

Anyone here who would know how to do that?

  #2 (permalink)  
Old Sep 21st, 2007, 08:56
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Centering an image on my web page

css
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
  #3 (permalink)  
Old Sep 21st, 2007, 09:00
New Member
Join Date: Sep 2007
Location: Antwerp, Belgium
Age: 33
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering an image on my web page

Well, yes... I thought that. Here's what I have in my css for the image:

.oneColElsCtr #container {
width: 46em;
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
text-align: left; /* this overrides the text-align: center on the body element. */
}


But what do I need to add so the image is centered all over the page and not just in the middle in it's length.

What do I need to add to show some form af shade around the picture?
  #4 (permalink)  
Old Sep 21st, 2007, 09:01
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Centering an image on my web page

from top?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
  #5 (permalink)  
Old Sep 21st, 2007, 09:03
New Member
Join Date: Sep 2007
Location: Antwerp, Belgium
Age: 33
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering an image on my web page

Well, the image should be centered in the dead center of the page. Now it's centered on top. But I need it in the middle of the screen.

The shade would need to be around the picture itself
  #6 (permalink)  
Old Sep 21st, 2007, 10:06
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Centering an image on my web page

Do you want it as a background image?
  #7 (permalink)  
Old Sep 21st, 2007, 11:54
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering an image on my web page

Could you give us a URL so we can "see" what you mean and have access to all the code.
  #8 (permalink)  
Old Sep 21st, 2007, 12:02
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Centering an image on my web page

I think this is a double post
  #9 (permalink)  
Old Sep 21st, 2007, 12:43
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Centering an image on my web page

Ugh! Thanks for the heads up!

Please follow the thread in the CSS forum

Position image in the dead center of my webpage

And to Fyscius: PLEASE DO NOT DOUBLE-POST! If you thread is in the wrong place, a mod will move where they see fit!
Closed Thread

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering a Page In CSS britishchampion Web Page Design 5 Jan 3rd, 2008 16:20
Centering an image within a scrollpane tox0tes Flash & Multimedia Forum 4 Dec 26th, 2007 06:00
[SOLVED] Centering an image with CSS without moving anything else on the page. Ed Web Page Design 5 Oct 29th, 2007 11:34
Need Help Centering my index page??? 0413 Starting Out 6 Jun 9th, 2007 06:40
Centering page question bklcomputing Web Page Design 1 May 20th, 2005 18:49


All times are GMT. The time now is 03:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43