Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Center Groups Of Images

This is a discussion on Center Groups Of Images, within the Beginners' Questions section. This forum and the thread "Center Groups Of Images" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> Center Groups Of Images, Without using align=center
Itsumishi
post Apr 15 2008, 10:17 PM
Post #1


Squeezing
***

Group: Members
Posts: 78
Joined: 5-March 08
From: Melbourne, Australia
Member No.: 195



Hi I've decided to make sure all my sites are XHTML Strict.
One problem I've enountered while trying to do this is that I have a list of sponsor logos running either side of my site.
DTL Awards Website

The logos vary quite a bit in size and are currently just in a list format.

However when I removed the align=center from their div tags I've not been able to find a way to center all the images properly without greatly bloating my style sheet with lots of different id's for each differently sized image.

Is there a simple way to make this work?
Without the align center tags.

Cheers
Go to the top of the page
 
+Quote Post
Itsumishi
post Apr 15 2008, 10:29 PM
Post #2


Squeezing
***

Group: Members
Posts: 78
Joined: 5-March 08
From: Melbourne, Australia
Member No.: 195



Nevermind!!

When I tried to do this I also decided to clean up the css

I'd accidently made
CODE
#sponsors_left ul, #sponsors_right ul {
margin: 0;
padding: 0 0 0 0;
list-style: none;
}


Read as
CODE
#sponsors_left, #sponsors_right ul {
margin: 0;
padding: 0 0 0 0;
list-style: none;
}


Which had obviously killed my list formatting.

All I needed to do was fix that and then put the 'text-align: center;'
into the code below.
CODE
#sponsors_left, #sponsors_right {
text-align: center;
background: #fff;
width: 200px;
overflow: hidden;
}
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 10 Popje 341 4th April 2008 - 10:07 PM
Last post by: Popje
No New Posts   6 LivingDeadBeat 240 20th March 2008 - 11:15 AM
Last post by: JustinStudios
No New Posts   2 JustinStudios 159 20th March 2008 - 05:02 PM
Last post by: JustinStudios
No new   14 Simon 176 29th March 2008 - 03:24 AM
Last post by: Simon
No New Posts   11 jamesicus 349 12th April 2008 - 01:48 PM
Last post by: jamesicus