Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Blogs and Blogging (http://www.greenguysboard.com/board/forumdisplay.php?f=8)
-   -   CSS experts - I need help (http://www.greenguysboard.com/board/showthread.php?t=36045)

NobleSavage 2006-11-13 03:56 PM

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 |huh


**and yes I know my xLabor templates are table based and sucky. I'm going to convert it slowly...

NobleSavage 2006-11-13 05:01 PM

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....

virgohippy 2006-11-13 05:02 PM

Just 3 pics?

The easiest way I can think of would be something to this effect:

Code:






I used something similar for a freesite a while back. I'm sure you can figure out how to change values, and convert the styles to an external sheet. ;)

virgohippy 2006-11-13 05:04 PM

Quote:

Originally Posted by NobleSavage (Post 312048)
Ok - never mind - I figured it out.

How'd you do it?

NobleSavage 2006-11-13 06:07 PM

Quote:

Originally Posted by virgohippy (Post 312052)
How'd you do it?

This is what I did:







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.

Maj. Stress 2006-11-13 06:21 PM

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. ;)

NobleSavage 2006-11-13 06:28 PM

Quote:

Originally Posted by Maj. Stress (Post 312079)
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. ;)

Yeah, you are right. I actually used .pics3.

jayeff 2006-11-14 05:20 PM

Nit-picking for sure, but margin: 0px 6px; would center them fully...

NobleSavage 2006-11-14 08:54 PM

Quote:

Originally Posted by jayeff (Post 312361)
Nit-picking for sure, but margin: 0px 6px; would center them fully...


Good point. I'll center that way from know on.

DuttySanchez 2006-11-15 08:24 AM

Quote:

Originally Posted by NobleSavage (Post 312048)
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....

I agree that the xlabor templates are total trash!!! They just want your money! They claim to give you all this stuff thats "included" but when you email them they just ignore you- |club|

oast 2006-11-15 12:09 PM

I have found this way works good for me and allows for dynamic centering of images in all browsers:







One note:
For it to work in IE, you have to make sure your DOC TYPE is set correctly.


All times are GMT -4. The time now is 03:35 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc