Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-11-13, 03:56 PM   #1
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
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..
NobleSavage is offline   Reply With Quote
Old 2006-11-13, 05:01 PM   #2
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
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....
NobleSavage is offline   Reply With Quote
Old 2006-11-13, 05:02 PM   #3
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
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>
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.
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2006-11-13, 05:04 PM   #4
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Quote:
Originally Posted by NobleSavage View Post
Ok - never mind - I figured it out.
How'd you do it?
__________________
~Warm and Fuzzy.
virgohippy is offline   Reply With Quote
Old 2006-11-13, 06:07 PM   #5
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
Quote:
Originally Posted by virgohippy View Post
How'd you do it?
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..
NobleSavage is offline   Reply With Quote
Old 2006-11-13, 06:21 PM   #6
Maj. Stress
Progress rarely comes in buckets, it normally comes in teaspoons
 
Maj. Stress's Avatar
 
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.
Maj. Stress is offline   Reply With Quote
Old 2006-11-13, 06:28 PM   #7
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
Quote:
Originally Posted by Maj. Stress View Post
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.
NobleSavage is offline   Reply With Quote
Old 2006-11-14, 05:20 PM   #8
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
Nit-picking for sure, but margin: 0px 6px; would center them fully...
jayeff is offline   Reply With Quote
Old 2006-11-14, 08:54 PM   #9
NobleSavage
Lord help me, I'm just not that bright
 
Join Date: May 2006
Posts: 103
Send a message via ICQ to NobleSavage
Quote:
Originally Posted by jayeff View Post
Nit-picking for sure, but margin: 0px 6px; would center them fully...

Good point. I'll center that way from know on.
NobleSavage is offline   Reply With Quote
Old 2006-11-15, 08:24 AM   #10
DuttySanchez
Are you sure you're an accredited and honored pornographer?
 
Join Date: Apr 2006
Location: NYC
Posts: 62
Send a message via ICQ to DuttySanchez Send a message via AIM to DuttySanchez Send a message via Yahoo to DuttySanchez
Quote:
Originally Posted by NobleSavage View Post
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-
DuttySanchez is offline   Reply With Quote
Old 2006-11-15, 12:09 PM   #11
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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.
oast is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:40 PM.


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