GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   CSS question/problem (https://gfy.com/showthread.php?t=918440)

Machete_ 07-28-2009 08:26 AM

CSS question/problem
 
Ok - let me try and explain the problem

I have a list where I want to add a few pictures, like this:

<li><image 01><image 02><image 03><image 04></li>


I want the image to be sorounded by a border and a caption text below.
http://ebusdk.com/gfx/temp/textcaption.jpg

I have it on a blog, but i suck at CSS and my programmer went on vacation without telling me.

I was hoping for a solution where I add the style to the global CSS file and could write something like
<li><div class="imgbox><image 01>some text</div> <div class="imgbox><image 02>some text</div> <div class="imgbox><image 03>some text</div> </li>

But if I do that, it adds a linebreak.. what am i doing wrong here?

Machete_ 07-28-2009 10:37 AM

Figured it out myself

made a style like this

PHP Code:

 div.box 
{ha 
width
:320px;
padding:5px;
border:1px solid #CCC;
margin:5px;
float:left;
text-align:center;
background-color#f0f0f0;



and added this to the doc

PHP Code:

<div class="box"> <img src="image.jpg" alt="alt img text" width="300" height="200"><br>text below image</div


Killswitch - BANNED FOR LIFE 07-28-2009 10:44 AM

jQuery ftw!

<li><img src="image.jpg" alt="your text here" /></li>

Using jQuery that will do exactly what you need :D

webboy21 07-28-2009 10:45 AM

you didn't need the <br>....you could have used div.box img and then display: block;

also no float needed, actually not sure why you are adding the float

webboy21 07-28-2009 11:03 AM

oh wait, you wanted them next to eachother...never mind...that's why you need the float :P

Machete_ 07-28-2009 11:33 AM

Aholes :1orglaugh:1orglaugh

I spend 3 hours going through CSS tutorials and cursing why it wouldent work


I will look at both the solutions you suggested just to make sure I do the smartest thing from the start..

thanks

webboy21 07-28-2009 02:47 PM

sorry kris, if I had seen this earlier I would have said so earlier :)

Machete_ 07-28-2009 03:32 PM

Quote:

Originally Posted by webboy21 (Post 16116328)
sorry kris, if I had seen this earlier I would have said so earlier :)

No worries. all that matter is it got done and I learned something :pimp

JeffCliff 07-29-2009 03:11 AM

Quote:

Originally Posted by KrisH (Post 16114811)
Ok - let me try and explain the problem

I have a list where I want to add a few pictures, like this:

<li><image 01><image 02><image 03><image 04></li>


I want the image to be sorounded by a border and a caption text below.
http://ebusdk.com/gfx/temp/textcaption.jpg

I have it on a blog, but i suck at CSS and my programmer went on vacation without telling me.

I was hoping for a solution where I add the style to the global CSS file and could write something like
<li><div class="imgbox><image 01>some text</div> <div class="imgbox><image 02>some text</div> <div class="imgbox><image 03>some text</div> </li>

But if I do that, it adds a linebreak.. what am i doing wrong here?

Wait, your programmer just gets up and goes on vacation when he pleases... Can I work for you?

tonyparra 07-29-2009 10:09 AM

I need to do something similar was jus goona post on it lemme try what you did...

tonyparra 07-29-2009 10:14 AM

Actually wrong i want the text to align at the top to the right of the image is this possible in a list? :helpme

tonyparra 07-29-2009 10:30 AM

Heres and example of what im saying:

see how the text is under and at bottom of pictures? how can i align it to the top so that it looks better? Im using a list.
http://blackvideoz.com/vid/images/tube/ifailatatcss.jpg

Machete_ 07-29-2009 04:23 PM

Quote:

Originally Posted by tonyparra (Post 16119303)
Heres and example of what im saying:

see how the text is under and at bottom of pictures? how can i align it to the top so that it looks better? Im using a list.
http://blackvideoz.com/vid/images/tube/ifailatatcss.jpg

'

you are related to teencat, I would rather fuck bill o'reilly bareback in the middle the vatican city, before I would provide you with as much as one nano-inch of helpfull advice.

Was that clear enough for you?

Machete_ 07-29-2009 04:24 PM

Quote:

Originally Posted by JeffCliff (Post 16118067)
Wait, your programmer just gets up and goes on vacation when he pleases... Can I work for you?

he is not "my" programmer, its just a guy I use when I need simple stuff done :1orglaugh

tonyparra 07-29-2009 09:14 PM

Quote:

Originally Posted by KrisH (Post 16120817)
'

you are related to teencat, I would rather fuck bill o'reilly bareback in the middle the vatican city, before I would provide you with as much as one nano-inch of helpfull advice.

Was that clear enough for you?

Why do you want to fuck bill o'reilly man?


All times are GMT -7. The time now is 02:28 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc