Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6807987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:53:59+00:00 2026-05-26T19:53:59+00:00

I am trying to list images on my webpage with text underneath each image.

  • 0

I am trying to list images on my webpage with text underneath each image. The images have css opactiy when the user hovers over the image. I have just listed the images in a div like so:

<div id="FirsRowImg">                   
<a class="linkopacity" href="services_backdrops.html" >
<img src="images/backDropSrv.png" border="0" ></a>  


<a class="linkopacity" href="services_balloons.html" >
<img src="images/balloonsSrv.png" border="0" ></a>  

<a class="linkopacity" href="services_centerpieces.html" >
<img src="images/CtrPieceSrv.png" border="0"  ></a> 

<a class="linkopacity" href="services_flowers.html" >
<img src="images/flowersSrv.png" border="0"   ></a> 

<a class="linkopacity" href="services_chaircovers.html" >
<img src="images/chairCvrsSrv.png" border="0"  ></a>
</div> 

I have put the text that goes under each image into a list but cannot get the right spacing between them as some text is longer. I have listed this like so:

<div id="navSrv">
<ul>
<li>Backdrops &amp; Drapes</li><li>Balloons</li><li>Centre Pieces</li><li>Flowers</li><li>Chair Covers</li>
</ul>
</div>

The CSS used for the images is just spacing, the CSS used for the text is:

#navSrv ul li{

   list-style-type:none;
   float: left;
   position: relative;
   top: -9px;
   left: 41px;
 }

#navSrv ul{
margin-left:-110px;
 } 

#navSrv li{
margin-left:90px;
 }

I have tried to add a class into each li but that didn’t work. I would appreciate any help with this. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:53:59+00:00Added an answer on May 26, 2026 at 7:53 pm

    Edit: Ive adjusted the code so the text should appear under the images.
    You could try nesting Divs like this:

    <div id="FirsRowImg">
      <div class="ImgCell">
        <a class="linkopacity" href="services_backdrops.html" >
          <img src="images/backDropSrv.png" border="0" >
          <p>Backdrops &amp; Drapes</p>
        </a>
      </div>
      <div class="ImgCell">
        <a class="linkopacity" href="services_balloons.html" >
          <img src="images/balloonsSrv.png" border="0" >
          <p>Balloons</p>
        </a>
      </div>
    ...etc etc...
    </div>
    

    and use CSS to style the ImgCell (I would imagine you can use most of the CSS you have for the images themselves and use them for the ImgCell instead).

    .ImgCell{
    display:block;
    float:left;
    margin-right:20px;//or whatever space you want between the images
    width:100px;//same or similar width as your image
    }
    .ImgCell p{
    float:left;
    clear:both;
    }
    

    I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to populate a List<Image> by reading the name of the each
I am trying to implement image as checkbox. I have a list with 2
I am trying to retrieve a list of images and text from a web
i have a list of images which im trying to convert to a video.
I have a list of images that I'm trying to move but it isn't
I have a list of images I am trying to animate: <div id =
I am trying to populate a list of images dynamically using javascript. I have
I'm trying to have a list of images displayed horizontaly. It's kind of like
i am trying to make a list of images ( image gallery ) and
I am trying to add an image to a list of images when a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.