![]() |
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? |
Figured it out myself
made a style like this PHP Code:
and added this to the doc PHP Code:
|
jQuery ftw!
<li><img src="image.jpg" alt="your text here" /></li> Using jQuery that will do exactly what you need :D |
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 |
oh wait, you wanted them next to eachother...never mind...that's why you need the float :P
|
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 |
sorry kris, if I had seen this earlier I would have said so earlier :)
|
Quote:
|
Quote:
|
I need to do something similar was jus goona post on it lemme try what you did...
|
Actually wrong i want the text to align at the top to the right of the image is this possible in a list? :helpme
|
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 |
Quote:
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? |
Quote:
|
Quote:
|
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