HostNed.comHostNed Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 14, 2008, 08:56:18 AM
250 Posts in 91 Topics by 66 Members
Latest Member: smartkick
Home Help Search Login Register
HostNed Forums  |  WEB DESIGN  |  Design Other  |  Topic: CSS, Javascript Objects and Firefox. 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: CSS, Javascript Objects and Firefox.  (Read 1251 times)
Dragonfighter
Newbie
*
Posts: 29


View Profile
CSS, Javascript Objects and Firefox.
« on: June 13, 2007, 03:18:59 AM »

Hello.  I am about to pull out my few remaining hairs here.  I have a resources page on my site and am using other sites' banners as links.  They are all in DIVs defined in the CSS and all align center perfectly in both IE and Firefox.  The page is standards compliant. 

The problem now is with the last resource.  It is a search form called up by Javascript, provided by the hosting site.  When I place the code in the same class of DIV as the others the DIV and the Form centers in IE but floats left in Firefox.

The page is here.

The CSS:
Quote
DIV.caption
{
   
         width: auto;
   height: auto;
   position: relative;
   padding: 0px;
   margin-left: auto;
   margin-right: auto;
   text-align: center;
}

DIV.banner
{
   width: auto;
   height: auto;
   position: relative;
   padding: 0px;
   margin-top: 20px;
   margin-left: auto;
   margin-right: auto;
   text-align: center;
}

The HTML:
Quote
<div class="banner">
          <script language="Javascript"  src="http://www.studylight.org/jscripts/searchcode.cgi?type=interlinear"   border="0"   alt="StudyLight dot Org"></script>
          <div class="caption">
         <p class="captions">An excellent resource for an in depth searching of Scripture.</p>
         </div>
</div>

Any ideas would be greatly appreciated.
Logged
Dynaweb
Yep
Administrator
Full Member
*****
Gender: Male
Posts: 108


HostNed Admin


View Profile WWW
Re: CSS, Javascript Objects and Firefox.
« Reply #1 on: June 13, 2007, 12:21:40 PM »

In your CSS, try adding "margin: 0 auto" to make the alignation (is that even a word?) in Firefox and other browsers.
Logged
Dragonfighter
Newbie
*
Posts: 29


View Profile
Re: CSS, Javascript Objects and Firefox.
« Reply #2 on: June 14, 2007, 10:51:35 AM »

Thanks, I tried it with both the original margin definitions and also deleting them.  No joy.  Ah well off to Florida, I'll ook again when I get back.
Logged
Pages: [1] Print 
HostNed Forums  |  WEB DESIGN  |  Design Other  |  Topic: CSS, Javascript Objects and Firefox. « previous next »
Jump to: