|
|
|
|
|
|
![]() |
#1 |
Lord help me, I'm just not that bright
|
CSS experts - I need help
I'm trying to get off my lazy ass and clean up my code.
How can I center 3 thumbs in a post with CSS? http://surfcuties.com/ See the post: "Blond with Big Tits at Pool" how to do that without a table? I've tried about 10 different things and nothing is working ![]() **and yes I know my xLabor templates are table based and sucky. I'm going to convert it slowly... Last edited by NobleSavage; 2006-11-13 at 04:07 PM.. |
![]() |
![]() |
![]() |
#2 |
Lord help me, I'm just not that bright
|
Ok - never mind - I figured it out.
By the way - don't buy any xlabor templates - I'm looking through the CSS and it really sucks. Lots of IDs are used where Classes should be used and a bunch of other stuff.... |
![]() |
![]() |
![]() |
#3 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
Just 3 pics?
The easiest way I can think of would be something to this effect: Code:
<div align="center" style="padding-left:20px;padding-right:20px;"> <img src="1.jpg" hspace="5" align="left" alt=""> <img src="3.jpg" hspace="5" align="right" alt=""> <img src="2.jpg" hspace="5" alt=""> </div> ![]()
__________________
~Warm and Fuzzy. ![]() |
![]() |
![]() |
![]() |
#4 |
Madness is like gravity. All it takes is a little... push.
Join Date: Feb 2006
Location: California
Posts: 1,679
|
__________________
~Warm and Fuzzy. ![]() |
![]() |
![]() |
![]() |
#5 |
Lord help me, I'm just not that bright
|
This is what I did:
<div> <img class="3pics" src="http://image.com" alt=""> <img class="3pics" src="http://image.com" alt=""> <img class="3pics" src="http://image.com" alt=""> </div> and in CSS: .3pics { margin-left: 12px; } I was making it way too complicated trying to figure out a way to do it with auto margin and screwing with floats. Then I figured it would just be a lot easier to put a fixed margin on each of left sides. Last edited by NobleSavage; 2006-11-13 at 06:11 PM.. |
![]() |
![]() |
![]() |
#6 |
Progress rarely comes in buckets, it normally comes in teaspoons
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
|
NobleSavage,
I don't think you can name a class beginning with a number. I ran into that problem once before. Make sure you test that in multiple browsers. ![]() |
![]() |
![]() |
![]() |
#7 |
Lord help me, I'm just not that bright
|
|
![]() |
![]() |
![]() |
#8 |
Just because I don't care doesn't mean I don't understand!
|
Nit-picking for sure, but margin: 0px 6px; would center them fully...
|
![]() |
![]() |
![]() |
#9 |
Lord help me, I'm just not that bright
|
|
![]() |
![]() |
![]() |
#10 | |
Are you sure you're an accredited and honored pornographer?
|
Quote:
![]()
__________________
Please Re-Read The Rules For Sig Files |
|
![]() |
![]() |
![]() |
#11 |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
I have found this way works good for me and allows for dynamic centering of images in all browsers:
<div style="width:390px;margin:auto;"> <img src="pic1.jpg" width="125" height="167" border="1" alt=""> <img src="pic2.jpg" width="125" height="167" border="1" alt=""> <img src="pic3.jpg" width="125" height="167" border="1" alt=""> </div> One note: For it to work in IE, you have to make sure your DOC TYPE is set correctly.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
![]() |
![]() |
![]() |
|
|