home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Graphic Design and Digital Photography
Ask a Tech Support Question (free)!

Simple CSS Problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2073
Discussions: 200,948, Posts: 2,379,408, Members: 246,309
Old December 28th, 2008, 12:32 PM   Digg it!   #1 (permalink)
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?
JayScott is offline   Reply With Quote
Old December 28th, 2008, 12:47 PM     #2 (permalink)
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.
JayScott is offline   Reply With Quote
Old January 3rd, 2009, 09:54 PM     #3 (permalink)
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.
Chasx is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (175)
Is It Just Me? (2938)
The disrespect of Obama by Russian .. (23)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
For Sale BFG GTX285 OC2 with 10 year .. (3)
Point and Shoot Camera Suggestions. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)


All times are GMT -4. The time now is 09:51 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



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