DIY Themes Forums  

Go Back   DIY Themes Forums > Thesis Theme > Thesis Customization Tips
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2008, 06:53 AM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default Center Image in image_box?

I'm sure I'll slap myself when someone tells me, but I can't seem to get an image to center in the #image_box.

I added:

#image_box img{text-align:center;}

to my custom.css, but no dice.

Help?
Reply With Quote
  #2 (permalink)  
Old 08-20-2008, 07:06 AM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

I could be barking up the wrong tree, but are your images 420 wide? I had the same issue last night and resized the images to 420px and then they were perfect.

Last edited by bs11 : 08-20-2008 at 07:10 AM.
Reply With Quote
  #3 (permalink)  
Old 08-20-2008, 07:25 AM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default No Disassemble!

Right. I could resize my images to all be 420 wide, but I have some that will look ridiculous (because they'd be way too tall). Surely there's a way to center the image in the image_box container ...

(thanks for the reply, though!)
Reply With Quote
  #4 (permalink)  
Old 08-20-2008, 08:00 AM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default Still Looking ...

Okay. Now I'm really confused. I was able to use custom.css to change the background color of the #image_box like so:

.custom #image_box(background:#000;}

but putting text-align:center; in there refuses to center an image.
What gives?
Reply With Quote
  #5 (permalink)  
Old 08-20-2008, 08:04 PM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default #image_box centering

Anyone? Bueller? Bueller?
Reply With Quote
  #6 (permalink)  
Old 08-20-2008, 11:59 PM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

Code:
.custom #image_box { text-align: center; }
That should work. The code posted above applied the text-align to the IMG element itself, but because it is not a container element, text-align has no effect.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #7 (permalink)  
Old 08-21-2008, 02:28 AM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default Missed it by *that* much?

Sorry, KingdomGeek, but that is exactly what I have now and it's not centering.

.custom #image_box{text-align:center;}

I can't think of *why* this isn't doing it, but it isn't.

I'm on a Mac and it's not centered in FF3 or in Safari; I've made almost no other changes to Thesis since I installed it. (Certainly nothing that would affect this.)

Full disclosure: I'm a computer programmer and have been building sites since 1996, so I'm not exactly a noob here ...
Reply With Quote
  #8 (permalink)  
Old 08-21-2008, 03:53 AM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

Do you by chance have a link I can see which uses the image you're wanting centered?

I wonder if this wouldn't work;

Code:
.custom #multimedia_box { text-align: center; }
Or failing that, perhaps this one:

Code:
.custom #multimedia_box { margin-left: auto; margin-right: auto; }
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #9 (permalink)  
Old 08-21-2008, 04:52 PM
Junior Member
 
Join Date: Aug 2008
Location: Los Angeles, CA
Posts: 8
Send a message via ICQ to gatordavid Send a message via AIM to gatordavid Send a message via MSN to gatordavid
Default Still Not Centered, but ...

Thanks for the effort, KingdomGeek. I gave that a shot, too, but still no dice.

I have surrendered for now and simply resized all my images to 420 wide.

(My site is davidgagne.net, but unfortunately there was no way for me to point you to an example because the image displayed is random ... you'd have had to refresh an unknown number of times to find one that wasn't the right size, and I didn't want to ask you to do that!)
__________________
David Vincent Gagne
http://www.davidgagne.net/
Reply With Quote
  #10 (permalink)  
Old 08-21-2008, 11:22 PM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

I'd have been more than willing to do so, if it meant getting an answer for ya!
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:47 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0