insideorkut.com

Destroy rebuild until god shows iContact mailing list?

Try iContact email marketing for free for 30 days. Click here to use coupon...

Get a free trial of iContact here. Click here for this special deal...
My 1st question is: Destroy rebuild until god shows iContact mailing list? Thanks for any comment. Another question on my mind: As you can see I added a search box to the header. What I am trying to do is to have it look something like this:.

But the box is beneath the background image instead on top of it..

Below is the css and html code:.

#header_search {.

Margin-top: 10px;.

Text-align: right;.

Padding-right: 20px;.

Font-family: tahoma, verdana, arial;.

Font-size: 12px;.

Color: #21EEFA;.

Font-weight: bold;.

Background: url(images/az_menu_on.jpg) no-repeat;.

Width: 154px;.

}.

#header_search input {.

Border: 1px solid #21EEFA;.

}.

<div id="header_search">.

<form action="advanced_search_result.php" method="GET">.

<input type="text" name="keywords">&nbsp;&nbsp;.

<input type="submit" value="Search!">.

</form>.

</div>.

</div>.

Below snap is final result:.

So if any member can find a little time to take a look at this to see where I am doing wrong..

Thanks in advance..

Bennett.

This post has been edited by.

Blr044.

: 16 April 2011, 22:41..

Comments (7)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some Googling and get back to you if I find an answer. You should email the people at iContact as they probably can answer it..

Comment #1

You have an errant comma in the code causing the button shift:.

<a href="https://www.YOURSITE.com/account.php">My Account</a>,.

Change change the CSS code you use to this:.

.searchbox {.

Height: 92;.

Width: 177px;.

Background-image:url('images/az_menu_off.jpg');.

Background-repeat:no-repeat;.

Background-position:center bottom;.

Position:relative;.

Left:705px;.

Top:-37px;.

}.

That gets you close (uisng the web developer plugin in Firefox - not sure about IE)..

Sometimes after changing the stylesheet in order to see any change you have to hold the.

<Ctrl>.

Key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet..

This works with IE and Firefox..

The background image isn't tall enough, or the box is too tall....

Take your pick..

Not sure what to do about that...

Comment #2

I have recreated a new background for the search box, as seen in snap shot below. I am able to move background around and the search input right or left. But just am having a rough time moving it up a little higher. I've used negative pixels, but something is letting it happen. Just in case there is a good tip, I will also add the code for the header and stylesheet:.

Header.php:.

<?php.

/*.

$Id$.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2010 osCommerce.

Released under the GNU General Public License.

*/.

If ($messageStack->size('header') > 0) {.

Echo '<div class="grid_12">'$messageStack->output('header')'</div>';.

}.

?>.

<div id="bodyWrapper" class="container_12">.

<div class="wrapper">.

<div class="main_container">.

<div class="header_bg">.

<div class="f_left header_store_name"><a href="http://www.GreatDiscounts4u.com/"><img src="images/store_logo.png" alt="Great cookware at GreatDiscounts4u" title=" GreatDiscounts4u - Great cookware " width="302" height="94" /></a></div>.

<div class="f_left header_box_languages"><! languages //>.

<div align="center" class="topboxText1">Language:&nbsp; <a href="http://www.greatdiscounts4u.com/index.php?language=en&amp;osCsid=925443d596ff2997552669563af70b3c"><img src="includes/languages/english/images/icon.gif" alt="English" title=" English " width="22" height="16" class="vertical" /></a> </div><! languages_eof //>.

</div>.

<div class="f_left header_box_currencies"><! currencies //>.

<form name="az_currencies" action="http://www.greatdiscounts4u.com/index.php" method="get"><div align="center" class="topboxText1">Currency:&nbsp;&nbsp;&nbsp;<select name="currency" onchange="this.form.submit();" class="vertical currencies_list"><option value="USD" selected="selected">U.S. Dollar</option></select><input type="hidden" name="osCsid" value="925443d596ff2997552669563af70b3c" /></div></form><! currencies_eof //>.

</div>.

<div class="f_left header_box_shopping_cart"><! shopping_cart //>.

<div class="f_left header_box_shopping_cart_style"><a href="http://www.greatdiscounts4u.com/shopping_cart.php"><img src="images/shopcart_icon.gif" alt="" width="23" height="21" /></a></div>.

<div class="f_left topBoxText"><div class="padding_13"><span class="cartTitle">Shopping Cart:</span>&nbsp;&nbsp;<span class="cartItems">Items in cart - 0</span></div></div>.

<div class="clear"></div>.

<! shopping_cart_eof //>.

</div>.

<div class="clear"></div>.

</div>.

<div class="f_left"><a href="http://www.GreatDiscounts4u.com/"><img src="images/hd_banner.jpg" alt="Great cookware at GreatDiscounts4u" title=" GreatDiscounts4u - Great cookware " width="959" height="185" /></a></div>.

<div class="clear"></div>.

<!menu>.

<div class="menu_nav">.

<div id="topmenu">.

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>">Home Page</a>.

<a href="<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>">New Products</a>.

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">My Account</a>.

<a href="<?php echo tep_href_link(FILENAME_RESOURCES); ?>">Resources</a>.

<a class="last" href="<?php echo tep_href_link(FILENAME_CONTACT_US); ?>">Contact Us</a>.

<div class="clear"></div> .

</div>.

</div>.

<!menu>.

<div class="searchbox">.

<div id="header_search">.

<form action="advanced_search_result.php" method="GET">.

<input type="text" name="keywords">&nbsp;&nbsp;.

<input type="submit" value="Search!">.

</form>.

</div>.

</div .

<div class="clear"></div>.

</div>.

</div>.

The css:.

.searchbox {.

Height: 92px;.

Width: 235px;.

Background-image:url('images/az_menu_off_a.jpg');.

Background-repeat: no-repeat;.

Background-position:center bottom;.

Position:relative;.

Left:725px;.

Top:-18px;.

}.

#header_search {.

Margin-top: -21px;.

Text-align: right;.

Padding-right: 15px;.

/*padding-top: -20px; */.

Font-family: tahoma, verdana, arial;.

/*font-size: 20px; */.

Color: #21EEFA;.

Font-weight: bold;.

}.

#header_search input {.

Border: 1px solid #21EEFA;.

/*margin-top: -25px; */.

}.

The snap shot of header:..

Comment #3

What we have now doesn't look so hot in Internet Explorer 7....

Using Firefox and IE8 (non-compatibility mode) it's about the same..

I'll see what I can do..

Browsers - Can't live with'em... Can't shoot'em.....

Comment #4

I did try something different today using local host on hard drive. FF, at least search box is located above the image. But IE8, it looks sick (excuse the terminology)...

Comment #5

If your IE8 looks sick you've probably got it in "compatibility mode"..

Take it out of that mode then make this change to the stylesheet:.

#header_search {.

Margin-top: -21px;.

Text-align: right;.

Padding-right: 15px;.

/*padding-top: -20px; */.

Font-family: tahoma, verdana, arial;.

/*font-size: 20px; */.

Color: #21EEFA;.

Font-weight: bold;.

Position:relative;.

Left:0px;.

Top:-12px;.

}.

I added these lines:.

Position:relative;.

Left:0px;.

Top:-12px;.

Sometimes after changing the stylesheet in order to see any change you have to hold the.

<Ctrl>.

Key down while doing a page refresh in the browser to force the browser to reload all contents from the server, including the newly changed stylesheet..

This works with IE and Firefox..

That looks great in my FF and IE8 (non-compatibility mode)...

Comment #6

Thank you very much. After using your suggestion, I tried it using IE8, FF 3.6.16 and FF 4.0, and it was a success. You've saved the day..

For my info, what is the difference between the two below?.

Margin-top: -21px;.

And.

Top:-12px;..

Comment #7

The first is used for top margin..

The second for positioning...

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.