![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
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. ![]() 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? |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
Figured it out myself
made a style like this PHP Code:
and added this to the doc PHP Code:
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Guest
Posts: n/a
|
jQuery ftw!
<li><img src="image.jpg" alt="your text here" /></li> Using jQuery that will do exactly what you need :D |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Nov 2004
Location: The Netherlands
Posts: 573
|
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 |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Nov 2004
Location: The Netherlands
Posts: 573
|
oh wait, you wanted them next to eachother...never mind...that's why you need the float :P
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
Aholes
![]() ![]() 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 |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Nov 2004
Location: The Netherlands
Posts: 573
|
sorry kris, if I had seen this earlier I would have said so earlier
![]() |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jul 2008
Posts: 183
|
Quote:
__________________
Private Partners Network - Up to 50%; FULL range of products; Weekly payouts - always on time! PM me for more details! |
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
|
I need to do something similar was jus goona post on it lemme try what you did...
__________________
High Performance Vps $10 Linode Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
|
Actually wrong i want the text to align at the top to the right of the image is this possible in a list?
![]()
__________________
High Performance Vps $10 Linode Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
|
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. ![]()
__________________
High Performance Vps $10 Linode Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#13 | |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
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? |
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#14 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
|
Why do you want to fuck bill o'reilly man?
__________________
High Performance Vps $10 Linode Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot |
![]() |
![]() ![]() ![]() ![]() |