Jump to content

Recommended Posts

I have just completed html and php.

 

I want to make a series of pictures so I am trying put a text below a pic then some space and another pic so on.

 

 

<img src = "/12.png"><br>   

<a href = "/123.html'>Raja</a>

 

This is starting but it is not coming in row format just due to break another picture starting from next line but i just want some space and name. Any idea how to do so?

 

Link to comment
https://forums.phpfreaks.com/topic/203333-how-to/
Share on other sites

<ul id="gallery">

  <li><a href="#"><img src="path/to/image.file" width="100" height="100">

      <span class="caption">BYEEE</span></a>

  </li>

  <li><a href="#"><img src="path/to/image.file2" width="100" height="100">

      <span class="caption">HIII</span></a>

  </li>

</ul>

 

ul#gallery li { display: block; float: left; }

 

ul#gallery li a img,

ul#gallery li a span { display: block; }

 

ul#gallery li a { text-align: center; text-decoration: none; }

ul#gallery li a span { color: #000; }

ul#gallery li a:hover span { border-bottom: 1px solid #000; }

Link to comment
https://forums.phpfreaks.com/topic/203333-how-to/#findComment-1065301
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.