Having trouble with the Safari search bar?

Hey there! I could really use some help with a search bar issue on my website kissoff.weebly.com. Everything works fine in IE, Chrome, Firefox, and Opera but it's not compatible with Safari because of the search bar.

I'm trying to move the search bar to the right so it looks like it does on the other browsers. Take a look at this screenshot of how it appears on Safari:

Safari can be tricky sometimes. Any suggestions on how to fix this? I can share the CSS & HTML for the search bar and navigation bar, but a review of the full website would be greatly appreciated.

  #navigation {
position: fixed;
margin-top: 0;
left: 0;
top: 0;
right: 0;
width: 100%;
color: #ffffff;
height: 35px;
text-align: center;
padding-top: 15px;
/* Adds shadow to the bottom of the bar */
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
/* Adds the transparent background */
background-color: rgba(125, 180, 18, 0.8);
color: rgba(1, 1, 1, 0.8);
z-index: 900;
    }


    #search {
display: inline;
    }
    #search input[type="text"] {
display: inline;
background: url(search-white.png) no-repeat 10px 6px #fcfcfc;
border: 1px solid #d1d1d1;
position: fixed;
margin-left: 450px;
margin-right: 0px;
margin-top: 0px;
color: #bebebe;
width: 150px;
padding: 6px 15px 6px 35px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) inset;
-webkit-transition: all 0.7s ease 0s;
-moz-transition: all 0.7s ease 0s;
-o-transition: all 0.7s ease 0s;
transition: all 0.7s ease 0s;
}

    #search input[type="text"]:focus {
width: 200px;
margin-right: 200px;
-o-margin-right: 10px;
display: inline;
}

/*SNIPPET OF HTML FOR NAVIGATION BAR & SEARCH HERE:*/
    <div id="navigation">
<div id="title">
KISS OFF
</div>
<form method="get" action="/search" id="search">
<input name="q" type="text" size="40" placeholder="Search..." />
</form>
<a href="#">Home</a>
<a href="#">Login</a>
<a href="#">Register</a>
<a href=#terms>Terms</a>
</div>

Your expertise is greatly appreciated! Thank you :) --Dijji

Answer №1

Consider making the following adjustments:

#search input[type="text"]{
...
margin-left: 450px;
margin-right: 0px;
....
}

change it to

#search input[type="text"]{
...
float: right;
margin-right: 0px;
...
}

Hopefully, implementing this solution will be beneficial for you.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Avoiding redirection in Django template form

Currently, I am facing a challenge with my application that involves rendering a Django Template model form where images are referenced from another model. To manage the addition and deletion of images for this other model, I have implemented a button wit ...

What is the best way to maximize an image's height evenly outside of its full-width container?

Is it possible to extend an image beyond its parent container on both the top and bottom while maintaining responsiveness and containing remaining content within the parent? I've managed to achieve this effect on the top but struggle with the bottom. ...

Strange Division Split in the Code. Link to JSFiddle Provided

I encountered a strange line break between two divs while working on a website design. The issue is with the gap between the divs offersContainer and recentWinnersHeadlineContainer. Here's the JSFiddle link: http://jsfiddle.net/d593fdea/ Although the ...

CSS tooltip within the document styling

Previously, I utilized the following code: I am seeking guidance on how to position the tooltip inline (to the right) with the parent div instead of above. Thank you for reviewing For a more user-friendly version, refer to this jsFiddle link HTML: < ...

Is there a way to dynamically insert a <span></span> tag into every line of a <pre></pre> block in HTML without manually coding each line?

One of my recent challenges was figuring out how to incorporate line numbers into source code using CSS. I finally achieved the desired effect, as shown below: https://i.sstatic.net/A0P12.png However, achieving this required me to consistently use <sp ...

what's causing the tabs in bootstrap to malfunction

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <link href="http://maxcdn.bootstrapcdn.com/bootst ...

Trigger multiple HTMX HX-Trigger events from Django in the header and activate various events in the HTML

I have a pair of elements that I need to refresh after updating data in the database. The two specific HTML DOM elements are: <div hx-trigger="revealed, update_location_graph_{{location.id}} from:body" hx-target="#plot_div_{{locatio ...

Issues with the disappearance of elements when using the Toggle() function

I've created a toggle feature for displaying a sub menu (.li-one) when clicking on the main menu (.ul-one). The issue arises when you click on another menu item, as the previous one does not disappear unless you click outside of the .main-nav div. Is ...

The JS file is being loaded successfully, however, the CSS file is not being loaded

While working on my local server environment, I encountered an issue where the js file in my `index.html` was loading, but the css file was not. After investigating in the `access_log` file, I discovered that the server was sending the css file with a 200 ...

Is using last-child to select all children in CSS possible?

I'm struggling to eliminate the border-right property of the last tab, but neither the nth-child property nor the last-child property is working. Additionally, when I use nth-child(1), it selects all the children and doesn't apply to other values ...

Empty imported content detected in Google Sheets

=IMPORTXML("https://www.tradingview.com/chart/1BxJl0Xz/", "//body/div/div/div/div/div/table/tr[3]/td/div/div/div/div[1]/div[1]/div[3]/div/div/div") Attempting to extract data from the above URL and import it into my Google Sheets, but encountering an erro ...

Can anyone help me with coloring Devanagiri diacritics in ReactJS?

I am currently working on a ReactJS project and I have come across an issue. I would like for the diacritic of a Devanagiri letter to be displayed in a different color than the letter it is attached to. For example: क + ी make की I was wondering ...

The data from my ajax code is not being successfully transmitted to the database

I'm having trouble using ajax to add data to the database. I'm not sure if the issue lies in the ajax code or the PHP code. Here is a snippet of my code: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></ ...

Selecting checkboxes

If you're looking for an example of limiting check boxes to a specific number, you can check out the code snippet here. var limit = 3; $('input.single-checkbox').on('change', function(evt) { if ($(this).siblings(':che ...

Struggling to properly position a checkbox within an Angular Material project

<div class="checkbox-password"> <div> <mat-checkbox class="example-margin">Remember me</mat-checkbox> </div> <div> <a routerLink="/forgotPassword" class="createAccount" ...

Styling chat messages from users using Javascript

Using Python, I've developed a websocket server for a web chat feature. The chat box, where user messages are displayed, is sized at 83px in height and 1176px in width. Instead of the traditional vertical list display of messages, I want to show user ...

PHP Looping - Generating unique student identification numbers

This is the code I am working on: $roll = rand(100,1000000); $result = mysql_query("SELECT roll FROM users") or die(mysql_error()); if($row["roll"] == $roll) { $roll = rand(100,1000000); } else { mysql_query("INSERT INTO users (roll) VALUES('$ ...

jQuery .CSS is not working for positioning the element at the bottom right corner!

I am struggling to create a basic Modal Box that can be minimized to the bottom right corner of the screen. I want to turn it into a plugin, but I'm having trouble getting the simple CSS to cooperate and position itself correctly at the bottom right. ...

Styling pagination for jquery dataTable

I've been looking into how to modify the pagination design, but haven't had much luck finding information on it. Currently, the table displays the standard default pagination style with the following jquery code. $('#id_view_student_table&a ...

Apply a 100% width to an image within an animation

Trying to make an image swapper using only CSS has been a smooth process so far with the animation feature effortlessly handling the image swaps. However, the challenge arises when the images themselves are not the perfect size and I'm using a div wit ...