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

The Archive Base Latest Questions

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

i created a style called topbar using css. The code are as follows: .topbar:hover

  • 0

i created a style called “topbar” using css.

The code are as follows:

.topbar:hover ul{ display: inline;}

.topbar {
    float: left;
    margin-left: 20px; 
    margin-right: 20px;
    font-family:"Georgia";
}
.topbar ul {
    display: none;
    top:30px;
    position: absolute; border-style:solid;
border-width:1px; background-color:white;}     
}


.clear {
    clear: both;
}

then i went to create a ul “grid” and allows mouse hover enlarge of images

    ul.grid, ul.grid > li {
    margin: 0;
    padding: 0;
}
ul.grid {

}
ul.grid > li {

    float: left;
    list-style-type: none;
    text-align: center;
    font-family:"Georgia", serif;
    padding-top:50px;
    padding-bottom:25px;
    padding-right:25px;
    padding-left:0px;

}
ul img:hover {     width: 200px;     height: 250px; }

my html code:

    <body>
<div class="topbar">
    <p>Title</p>

    <ul>
        <li><a href="C:\Users\chan0554\Desktop\AZ.html">A-Z</a></li>
        <li><a href="C:\Users\chan0554\Desktop\ZA.html">Z-A</a></li>
    </ul>
</div>

<div class="topbar">
    <p>Genre</p>

    <ul>
        <li><a href="C:\Users\chan0554\Desktop\action.html">Action</a></li>
        <li><a href="C:\Users\chan0554\Desktop\comedy.html">Comedy</a></li>
        <li><a href="C:\Users\chan0554\Desktop\animation.html">Animation</a></li>
        <li><a href="C:\Users\chan0554\Desktop\horror.html">Horror</a></li>
        <li><a href="C:\Users\chan0554\Desktop\drama.html">Drama</a></li>
    </ul>
</div>
    <div class="clear"></div>

<br />
<div id="videos">
<ul class="grid">
    <li>
        <p class="image"><a href="C:\Users\chan0554\Desktop\thor.html"><img src="http://3.bp.blogspot.com/-AGAaic1-yrM/TcWmj77lHzI/AAAAAAAAAkQ/K6zzSk1WgUY/s1600/thor-movie-poster-1.jpg" alt="Thor" width="175" height="200" /></a></p>
        <p class="name"><a href="C:\Users\chan0554\Desktop\thor.html">Thor</a></p>
        <p class="genre"><a href="C:\Users\chan0554\Desktop\thor.html">Action</a></p>
        <p class="format"><a href="C:\Users\chan0554\Desktop\thor.html">DVD</a></p>
        <p class="year"><a href="C:\Users\chan0554\Desktop\thor.html">2011</a></p>
    </li>
    <li>
        <p class="image"><a href="C:\Users\chan0554\Desktop\hangover.html"><img src="http://www.galacool.com/wp-content/uploads/2010/02/hangover2.jpg" alt="Hangover" width="175" height="200" /></a></p>
        <p class="name"><a href="C:\Users\chan0554\Desktop\hangover.html">Hangover</a></p>
        <p class="genre"><a href="C:\Users\chan0554\Desktop\hangover.html">Comedy</a></p>
        <p class="format"><a href="C:\Users\chan0554\Desktop\hangover.html">DVD</a></p>
        <p class="year"><a href="C:\Users\chan0554\Desktop\hangover.html">2009</a></p>
    </li>
</ul>
</div>
</body>

Why do i have a left unwanted space beside my “thor” movie image?

  • 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-26T03:59:01+00:00Added an answer on May 26, 2026 at 3:59 am

    The left space must be the indentation of the List where you are putting them. Ideally, to remove this left-indentation, you should set both padding and margins to “0” for the “UL”.

    This small piece of code works perfectly in this context:

    CSS 
    
    #navcontainer ul
    {
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    
    
    HTML
    
    <div id="navcontainer">
    <ul>
    <li><a href="#">Milk</a>
       <ul>
       <li><a href="#">Goat</a></li>
       <li><a href="#">Cow</a></li>
       </ul>
    </li>
    <li><a href="#">Eggs</a>
       <ul>
       <li><a href="#">Free-range</a></li>
       <li><a href="#">Other</a></li>
       </ul>
    </li>
    </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created css page called style.php and included this the top: <?php header(Content-type:
i created a custom menu called top-navigation. Now I'd like to style it with
I created one application called wallpaper in this apps I am browsing Image using
I have created a default style for a Button including a custom ControlTemplate like
I have created a custom style and template for MenuItem and ContextMenu, and for
We have created a new List View Style that shows thumbnails from a picture
I created a TreeListCtrl in wxPython like following. self.tree = wx.gizmos.TreeListCtrl(self, style = wx.TR_DEFAULT_STYLE
I tried to create a Style for DataGridTextColumn with the following code <Style TargetType={x:Type
I created my own module called cssswitch. I'm trying to create my own html
I have created a custom ItemsControl called Toolbox. I want to be able to

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.