Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2009
Posts: 180
T
member
member
T Offline
Joined: Mar 2009
Posts: 180
Is there a way to insert blank spaces inbetween small images on the same line? I'd like one small image on the left and one on the right.

How might i accomplish this?

thanks in advance for your help

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
easiest way is to css it smile

example:

HTML
<span class="yodude">
<img src="http://yoursite.com/images/image1.jpg" />
<img src="http://yoursite.com/images/image2.jpg" />
</span>

then the css could be:

Code
.yodude img {
margin:4px 10px;
border:none;
}
.yodude {
padding:6px;
}

that would put 10px of space between the 2 images ( adjust as needed)

i also css'd the containter span with 6px all around.

you could switch out the span for a div, if you wanted to go block based, versus inline..

all kinds of possibilities

if you explain more details, i can refine it smile

Joined: Mar 2009
Posts: 180
T
member
member
T Offline
Joined: Mar 2009
Posts: 180
Thanks for the reply, sirdude!!

I was able to get the desired effect by doing this:

[*align:center][*img]http://www.supermotors.net/getfile/260800/thumbnail/smiley%20kick%20other%20smiley%20in%20balls.gif[*/img][*/align]


[Linked Image from supermotors.net]

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
ok, i didn't know you meant in an actual post

sure smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 1,277 guests, and 207 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)