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 77205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:47:38+00:00 2026-05-10T20:47:38+00:00

I have the following HTML to center images and links within a layer: edit:

  • 0

I have the following HTML to center images and links within a layer:

edit: a better example

<style> body  {  background-color:#000;   color: #FFF;   }  a  { font-family: 'Broadway', Broadway,monospace;  font-size: 14px; color:  #FFF; }  #images a {   width: 24.99%;  display: block;  float: left;  text-align: center;  }  #container; { top: 30%; left: 15%; } #main { position: absolute; width: 800px; height: 600px; } #logo { float:left; background-image:url('1.jpeg');  width: 104; height: 100; }    </style> <div id='main'>  <div id='logo'> </div> <div id='container'>  <div id='images'> <a href='1.html' >     <img src='1.gif' alt='x' width='181' height='173' border='0' /><br />     One </a> <a href='2.html' >     <img src='2.gif' alt='x' width='181' height='173' border='0' /><br />     Two </a> <a href='3.html' >     <img src='3.gif' alt='x' width='181' height='173' border='0' /><br />     Three </a> <a href='4.html' >     <img src='4.gif' alt='x' width='181' height='173' border='0' /><br />     Four </a> </div></div></div> 
  • 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. 2026-05-10T20:47:38+00:00Added an answer on May 10, 2026 at 8:47 pm
    1. The main div has a width of 800px, so the floated logo div (104px) + the 4 images (25% each) is too large for one line, so the final image wraps to the line below. Unfloating the logo div will start the images on a new line at the far left.

    2. Position is static by default – so left and top have no effect.

    3. Set position:relative; on the container div – be careful with IE6 though, because position:relative is a bit funny if I remember correctly.

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

Sidebar

Related Questions

I have the following css and html files: body{ text-align: center; background-color: #eeeeee; margin:
I have the following CSS: html, body { background-color:black; font-family:arial bold; overflow:auto; text-align: center;
I have the following code <html> <head> <title>Test</title> <style type=text/css> <!-- body,td,th { color:
I currently have the following CSS (called splash.css): html { background:url(splash.jpg) center no-repeat; background-size:auto
Following is my HTML : <div class=title-box> <div class=box1 style=background-image:url(/common/images/arrow-r.png); background-repeat: no-repeat; background-position: left
I have the following CSS and HTML: .TestPadding{ width:29px; text-align:center; height:18px; padding:3px 0px 2px
I have following HTML: <div class=olympics style=display: block; position: absolute; left: 250px; top: px;>
I have following HTML <tr id=r1 class=l1> <td><img class=plusminus id=r1c1 src=assets/images/plus.png border=0 />3/10/12</td> <td></td>
I have the following html and css code: <!DOCTYPE HTML> <html> <head> </head> <body>
I have the following CSS in LESS format: body { width: 100%; background: #F4F4F4

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.