+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    4

    Question 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?

  2. #2
    Junior 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.

  3. #3
    Junior 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

  1. Graphics Card Problem With CSS
    By Caruso1245 in forum Graphics Cards and Displays
    Replies: 5
    Last Post: September 21st, 2007, 06:27 PM
  2. IE CSS Problem
    By Blazer06 in forum Webmastering and Programming
    Replies: 6
    Last Post: September 4th, 2005, 12:25 PM
  3. probably a simple problem using IE
    By herronial in forum Webmastering and Programming
    Replies: 4
    Last Post: June 9th, 2005, 06:11 PM
  4. CSS Problem
    By twax in forum General Tech Discussion
    Replies: 8
    Last Post: May 11th, 2005, 07:18 PM
  5. Simple problem with simple answer...but i still dont know how
    By Iknownothing in forum Technical Support
    Replies: 3
    Last Post: July 14th, 2004, 06:31 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews