- 0
Form won't vertically centre in Opera
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By zikalify · Posted
Did you go into settings > engines and switch some more stuff on. The more you enable the slower it will get but the better the results will be -
By +TRS-80 · Posted
SpaceX took its largest step yet toward becoming a retail wireless carrier on Friday when President and COO Gwynne Shotwell told investors at the company's IPO roadshow that SpaceX is considering launching a Starlink-branded mobile phone service for US consumers.............. https://www.techtimes.com/articles/319177/20260627/starlink-mobile-coming-t-verizon-spacex-has-spectrum-still-needs-towers.htm -
By excalpius · Posted
Stop asking people that. It's a "No True Scotsman" argument in that you are attempting to discredit the opinions of a person by Attacking the Messenger. The reason that these are logical fallacies is the TRUTH is based on facts as supported by evidence. Nothing else. So, always debate the facts with evidence to reach the truth. Once you learn to do this, you'll be able to recognize when people are fearmongering and lying to you for their own selfish ends. -
By excalpius · Posted
It doesn't matter if you didn't directly hear it from person X or Y. Every one of your statements comes straight from the racist, skinhead, anti-immigrant, be afraid of everything, "they are all taking our jobs", etc. etc. mouthpieces. That's where Farag and Putin heard it from too...and used it against the UK. So, while you keep disavowing the people who publicly peddled that position, you keep proving over and over again that those lies influenced you into being tricked when the Brexit vote came around too. In fact, your final sentence makes it crystal clear that it was the racist/anti-immigrant lies you fell and voted for, since you stated that you didn't have an issue with the economic trade issues with the EU. Ahem. To be clear, all of these LIES are EONS old, mate. They are the same fearmongering lies peddled to the same ignorant, gullible cowards by the same charlatans, snake-oil salesmen, and would be demagogues who've been doing this since caveman Ugh lied about his slightly different neighbor in order to steal his land. And, finally, you answered your own previous question. The reason that the EU isn't clamoring to bring the UK back is that they have had enough of people who would rather shoot themselves in the foot than get over their "insecurity issues". It's the same reason the entire world is moving away from the USA as fast as it can... -
By +TRS-80 · Posted
Cook doesn't retire until Sep 1st,
-
-
Recent Achievements
-
flexorcist earned a badge
Week One Done
-
Woland13 earned a badge
One Month Later
-
Woland13 earned a badge
Week One Done
-
bernmeister earned a badge
One Year In
-
Scoobystu earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
jordan.
I have a simple search form with one input field and a submit button. The fields are vertically centred in place using line height and this works well in all browsers except Opera.
Take a look here: http://kitescoop.com...ewforum.php?f=2
It is the search box in the top right corner.
What makes this especially confusing is that I have a custom home page for that forum here which uses a different stylesheet but practically the same code for the search form. On the home page, it centers fine.
Here is what it looks like in Opera:
Here is what it looks like in every other browser:
Here is the relevant code:
HTML (look at <div id="search-box">)
<div id="header-box"> <h1><a href="{U_INDEX}">{SITENAME}</a></h1> <h2>{SITE_DESCRIPTION}</h2> <div id="top-nav"> <!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH --> <div id="search-box"> <form action="{U_SEARCH}" method="post" id="search"> <fieldset> <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" /> <input class="button2" value="{L_SEARCH}" type="submit" /> </fieldset> </form> </div> <script type="text/javascript"> $(function() { //find all form with class jqtransform and apply the plugin $("form.jqtransform").jqTransform(); }); </script> <!-- ENDIF --> </div> <div id="main-nav"> <ul id="main-nav-primary"> <li><a href="http://www.kitescoop.com/" class="nav-home">Home</a></li> <li><a href="http://www.kitescoop.com/videos/" class="nav-videos">Videos</a></li> <li><a href="http://www.kitescoop.com/photos/" class="nav-photos">Photos</a></li> <li><a href="http://www.kitescoop.com/forum/" class="nav-forum">Forum</a></li> </ul> <ul id="main-nav-secondary"> <li><a href="http://www.kitescoop.com/articles/" class="nav-articles">Articles</a></li> <li><a href="http://www.kitescoop.com/interviews/" class="nav-interviews">Interviews</a></li> <li><a href="http://www.kitescoop.com/artists/" class="nav-artists">Artists</a></li> <li><a href="http://www.kitescoop.com/tricks/" class="nav-tricks">Tricks</a></li> <li><a href="http://www.kitescoop.com/store/" class="nav-store">Store</a></li> </ul> </div> </div>CSS:
#header-box { background-color: #000; padding: 20px 9px 10px 9px; position: relative; } #header-box h1 { display: block; position: absolute; z-index: 10; left: 30px; top: 26px; } #header-box h1 a { display: block; background: transparent url('{T_THEME_PATH}/images/logo.gif') no-repeat top left; width: 242px; height: 144px; text-indent: -9000px; } #header-box h2 { display: none; } #top-nav { background: #000 url('{T_THEME_PATH}/images/menu_bg.gif') repeat-x top left; height: 41px; } #top-nav #search-box { float: right; height: 41px; line-height: 41px; margin-right: 16px; } #top-nav #search-box fieldset { border: none; height: 41px; padding: 0; margin: 0; font-size: 11px; } #top-nav #search-box fieldset input[type="text"] { height: 23px; width: 164px; background: transparent url('{T_THEME_PATH}/images/input.gif') no-repeat top left; border: none; padding: 0 4px; margin: 0; font-size: 11px; line-height: 23px; color: #919191; } #top-nav #search-box fieldset input[type="submit"] { height: 23px; width: 70px; background: #181818 url('{T_THEME_PATH}/images/search.gif') no-repeat top left; border: none; padding: 0; margin: 0; font-size: 11px; line-height: 23px; text-indent: -9000px; cursor: pointer; } #main-nav { margin-top: 16px; background: #000 url('{T_THEME_PATH}/images/under_menu_bg.gif') repeat top left; height: 108px; position: relative; }Link to full stylesheet: http://kitescoop.com.../stylesheet.css
Link to home page stylesheet for comparison: http://kitescoop.com.../home_style.css
Any help on this is much appreciated. I am completely stumped here.
Thanks,
Jordan
Link to comment
https://www.neowin.net/forum/topic/1084751-form-wont-vertically-centre-in-opera/Share on other sites
4 answers to this question
Recommended Posts