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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:50:32+00:00 2026-06-04T07:50:32+00:00

I have been working on a custom wordpress theme, this is part of a

  • 0

I have been working on a custom wordpress theme, this is part of a schoolproject where we’re supposed to redesign a homepage for an association (in my case a theater group).

I’ve customized the wordpress menu to add images for the four pages. However, the <nav> element that these images are located in is taking more width than expected, even though I’m using width: auto in the CSS. Because of this I have repositioned the <nav> using margin-right: -133px; which I feel shouldn’t be the way to solve this.

The HTML for the upper banner is: (with a whole bunch of commented code removed)

<header role="banner" id="branding">
    <a href="http://dev.zomis.net/talat/">
        <img alt="" src="http://dev.zomis.net/talat/wp-content/themes/talat/talat-logo.png" id="header_logotype">
    </a>
    <nav role="navigation" id="access">
        <a href="http://dev.zomis.net/talat/forening">
            <img src="http://dev.zomis.net/talat/wp-content/themes/talat/talat_meny_forening_gray.jpg" id="menu_image_forening" class="menu_image">
        </a>
        <a href="http://dev.zomis.net/talat/scen">
            <img src="http://dev.zomis.net/talat/wp-content/themes/talat/talat_meny_scen.jpg" id="menu_image_scen" class="menu_image">
        </a>
        <a href="http://dev.zomis.net/talat/film">
            <img src="http://dev.zomis.net/talat/wp-content/themes/talat/talat_meny_film_gray.jpg" id="menu_image_film" class="menu_image">
        </a>
        <a href="http://dev.zomis.net/talat/natverk">
            <img src="http://dev.zomis.net/talat/wp-content/themes/talat/talat_meny_natverk_gray.jpg" id="menu_image_natverk" class="menu_image">
        </a>
        <div class="menu-talat-container"><ul class="menu" id="menu-talat"></ul></div>
    </nav>
</header>

To easier see the problem, I’ve marked the whole header element with red color, and the nav with yellow.

I have been using Firebug a lot to play around and see what is causing this but I can’t figure it out. I’ve been suspecting the empty <div class="menu-talat-container"> within the <header> to be the cause of this but I have been removing that part many times with Firebug and having seen no difference.

The page can be seen at: http://dev.zomis.net/talat/scen

An image of how it looks and the part I don’t understand marked with the text “Why is this yellow part sticking out to the right?”:Why is this yellow part sticking out to the right?

When removing the margin-right property the question becomes instead “Why is there no image here?”:
Why is there no image in the marked area?

  • 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-06-04T07:50:33+00:00Added an answer on June 4, 2026 at 7:50 am

    The reason it is happening is that the images’ widths are set to 15%. Altogether they only account for 60% of the width of the container. When you add in the manually set margins it stills comes up to less than 100%. So the #access div just adds that space.

    I think it’s not a good idea to set an image’s width to a percentage. I’d suggest editing the images to fit the actual space you want them to occupy and then not setting the images’ width and height in your css.

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

Sidebar

Related Questions

So I have been working with Wordpress 3.x and trying to build a custom
I am new to Spring Security. I have been working on creating a custom
Have been working on this question for a couple hours and have come close
I have been working on this problem for 2 days now and it's an
I have been experimenting with Custom Actions in order to encrypt part of the
I have been trying to get a custom inventory script working in unrealscript. I
So, I'm working on a WordPress theme that uses a custom taxonomy to create
I have honestly been working on this for about two weeks and researched as
Greetings, I have been working on a custom namespace in appcelerator but have run
I've been working on this application but have come across a problem that I

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.