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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:50:29+00:00 2026-05-23T12:50:29+00:00

I have this code <span> <%= image_tag(machinelogo.jpg, :alt => camp,:class=>logo) %></span> <ul id=css3menu1 class=topmenu>

  • 0

I have this code

<span> <%= image_tag("machinelogo.jpg", :alt => "camp",:class=>"logo") %></span>

<ul id="css3menu1" class="topmenu">
<li class="topfirst"><a href="#" title="Home" style="height:18px;line- height:18px;">Home</a></li>
<li class="topmenu"><a href="#" title="Profile" style="height:18px;line-height:18px;"><span>Profile</span></a>
<ul>
    <li><a href="#" title="Edit Profile ">Edit Profile </a></li>
    <li><a href="#" title="View profile">View profile</a></li>
</ul>
</li>
<li class="toplast"><a href="#" title="Account" style="height:18px;line- height:18px;"><span>Account</span></a>
<ul>
    <li><a href="#" title="Account settings">Account settings</a></li>
    <li><a href="#" title="Sign out">Sign out</a></li>
</ul>
</li>
   </ul>            

 <input type="text" class="searchfield" id="search" size="50"/>
 <button type="button" class="searchbutton"/>Search</button>

logo class

  .logo{height:110px;width:120px;}

menu css

  ul#css3menu1,ul#css3menu1 ul{
margin:0;list-style:none;padding:0;border-width:1px;border-style:solid;border-     color:#5f5f5f;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}
  ul#css3menu1 ul{
display:none;position:absolute;left:0;top:100%;-moz-box-shadow:3.5px 3.5px 5px    #000000;-webkit-box-shadow:3.5px 3.5px 5px #000000;box-shadow:3.5px 3.5px 5px #000000;padding:0 10px 10px;background-color:#ffffff;border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px;border-color:#d4d4d4;}
   ul#css3menu1 li:hover>*{
display:block;}
    ul#css3menu1 li:hover{
position:relative;}
    ul#css3menu1 ul ul{
position:absolute;left:100%;top:0;}
     ul#css3menu1{
display:block;font-size:0;float:left;}
    ul#css3menu1 li{
display:block;white-space:nowrap;font-size:0;float:left;}
   ul#css3menu1>li,ul#css3menu1 li{
margin:0;}
   ul#css3menu1 a:active, ul#css3menu1 a:focus{
outline-style:none;}
  ul#css3menu1 a,ul#css3menu1 a.pressed{
display:block;vertical-align:middle;text-align:left;text-decoration:none;font:bold    12px Trebuchet MS;color:#ffffff;text-shadow:#FFF 0 0 1px;cursor:pointer;}
   ul#css3menu1 ul li{
float:none;margin:10px 0 0;}
   ul#css3menu1 ul a{
text-align:left;padding:4px;background-color:#ffffff;background-image:none;border-    width:0;border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px;font:14px    Tahoma;color:#000000;text-decoration:none;}
     ul#css3menu1 li:hover>a{
background-color:#00a6cb;border-color:#C0C0C0;border-style:solid;font:bold 12px     Trebuchet MS;color:#000000;text-decoration:none;text-shadow:#FFF 0 0 1px;background-image:url("mainbk.png");background-position:0 100px;}
    ul#css3menu1 img{
border:none;vertical-align:middle;margin-right:10px;}
   ul#css3menu1 img.over{
display:none;}
   ul#css3menu1 li:hover > a img.def{
display:none;}
    ul#css3menu1 li:hover > a img.over{
display:inline;}
   ul#css3menu1 li a.pressed img.over{
display:inline;}
   ul#css3menu1 li a.pressed img.def{
display:none;}
    ul#css3menu1 span{
display:block;overflow:visible;background-position:right center;background-  repeat:no-repeat;padding-right:0px;}
    ul#css3menu1 a{
padding:10px;background-color:#07a7d8;background-   image:url("mainbk.png");background-repeat:repeat;background-position:0 0;border-width:0 0 0   1px;border-style:solid;border-color:#C0C0C0;color:#ffffff;text-decoration:none;text-  shadow:#FFF 0 0 1px;}
   ul#css3menu1 li:hover>a,ul#css3menu1 li>a.pressed{
background-color:#00a6cb;background-image:url("mainbk.png");background-position:0   100px;border-style:solid;border-color:#C0C0C0;color:#000000;text-decoration:none;text-  shadow:#FFF 0 0 1px;}
   ul#css3menu1 ul li:hover>a,ul#css3menu1 ul li>a.pressed{
background-color:#ffffff;background-image:none;font:14px Tahoma;color:#868686;text-decoration:none;}
   ul#css3menu1 li.topfirst>a{
border-radius:5px 0 0 5px;-moz-border-radius:5px 0 0 5px;-webkit-border-   radius:5px;-webkit-border-top-right-radius:0;-webkit-border-bottom-right-radius:0;}
   ul#css3menu1 li.toplast>a{
border-radius:0 5px 5px 0;-moz-border-radius:0 5px 5px 0;-webkit-border-radius:0;-  webkit-border-top-right-radius:5px;-webkit-border-bottom-right-radius:5px;}    

But for some reason the logo shows up between the menu and search box instead of showing up first,what could be wrong? Thank you in advance

  • 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-23T12:50:29+00:00Added an answer on May 23, 2026 at 12:50 pm

    The problem is that the <li> elements inside your menu are floated to the left and your logo is inside a <span>. A <span> is an inline element rather than a block so the <li> elements float right past it on their way to the left side. If you wrap your logo in a <div> or set display:block on the <span>, you’ll get your pieces in the right places.

    Example: http://jsfiddle.net/ambiguous/Ekra4/1/

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

Sidebar

Related Questions

I have this code <a href=#> <span style=border-right: medium none; class=Yes>Yes</span> </a> <a href=#>
I have this HTML code: <span class=left> <img class=avatar src=image.jpg /> </span> <span class=right>
I have the following code <span style=background-image:url('/product_images/attribute_value_images/78.thumbnail.jpg') class=thumbnail>&nbsp;</span> I need to change the word
I have this html code <ul> <li><a href=#><img src=path_to_image1><span>some text</span></a></li> <li><a href=#><img src=path_to_image2><span>some text</span></a></li>
i have this code $(function() { $('#ans_vote a span').click(function(){alert('working');return false;});}); and this html <div
I have this code in jQuery, that I want to reimplement with the prototype
I have this code: chars = #some list try: indx = chars.index(chars) except ValueError:
I have this code that performs an ajax call and loads the results into
I have this code #include <iostream> using namespace std; int main(int argc,char **argv) {
I have this code: CCalcArchive::CCalcArchive() : m_calcMap() { } m_calcMap is defined as this:

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.