Thread: Simple CSS Problem
-
December 28th, 2008, 12:32 PM #1Junior Member
- Join Date
- Dec 2008
- Posts
- 4
Simple CSS Problem
Well, I thought this was a simple problem. Until I tried a half-dozen approaches without success. I'm designing a page that shows a list of companies, with their logo and a blurb. The logos vary in size up to 150px, so I thought the best thing to do (and my client agrees) was to reserve 150px for the logo, center the logo at actual size within that, and wrap the text to the right and underneath.
But I can't make it work. The best I have so far is to use a DIV with width: 150px; float: left; and put the IMG inside it. This does almost exactly what I want, but I can't get the IMG to the center of the DIV. I tried margin-left: auto; margin-right: auto; and even align="center", as well as few other things I can't remember now, but no luck.
Whatever I do, it has to work in FF as well as IE.
Help?
-
December 28th, 2008, 12:47 PM #2Junior Member
- Join Date
- Dec 2008
- Posts
- 4
Oh, I almost forgot the reason why this is so hard: it's in a table cell. (And, FWIW, the table is in an iFrame.) Since this content is generated "live" (and there is another column that I didn't mention), it seemed best to use a table. But if there's no table-based solution, I guess I could suck it up and do a non-table based solution.
Sorry 'bout that. I promise I'm better with PHP than with CSS.
-
January 3rd, 2009, 09:54 PM #3Junior Member
- Join Date
- Aug 2008
- Location
- ARIZONA
- Posts
- 8
I had a similar problem using tables, found a better way, using layers. Layers can be absolutely positioned as well as size. The web sites that I setup and maintain are www.districtone.net , www.fhsa.org and www.smvcc.net I use slide shows, placing them at a certain location using tables or just a space on a page.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Graphics Card Problem With CSS
By Caruso1245 in forum Graphics Cards and DisplaysReplies: 5Last Post: September 21st, 2007, 06:27 PM -
IE CSS Problem
By Blazer06 in forum Webmastering and ProgrammingReplies: 6Last Post: September 4th, 2005, 12:25 PM -
probably a simple problem using IE
By herronial in forum Webmastering and ProgrammingReplies: 4Last Post: June 9th, 2005, 06:11 PM -
CSS Problem
By twax in forum General Tech DiscussionReplies: 8Last Post: May 11th, 2005, 07:18 PM -
Simple problem with simple answer...but i still dont know how
By Iknownothing in forum Technical SupportReplies: 3Last Post: July 14th, 2004, 06:31 PM



LinkBack URL
About LinkBacks



Reply With Quote

Support is ending for Windows XP - Microsoft Windows Help TL;DR Support for Windows XP is ending on April 8, 2014.
Is It Just Me? v233893843