Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Senior Member tha_Gsheep's Avatar
    Join Date
    Feb 2003
    Location
    Scotland
    Posts
    188
    Member #
    780
    Hey peeps, haven't posted for a while so I though I'd pose this quick problem before going to bed.

    Starting at this page:
    http://www.removalboxes.org/rfaq.html

    Then continuing on to these pages:
    http://www.removalboxes.org/links/index.html

    Everything works fine in the ever forgiving explorer but it ain't nothing but trouble with Netscape and other mozilla based browsers.

    I guess that its probably the padding thats generating the shifts but I still need that padding so I'll need an alternative method.

    P.S. Sorry about the messy code, my CSS skills are far from divine.

    Gsheep. x
    www.appletv.co.uk

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Padding and margins are applied differently between IE and NS.

    For complex applications of styles, like these, you should create two stylesheets - one for IE and one for NS, and fine-tune each for their respective browsers. Then, write a javascript that applies the proper stylesheet based upon the browser detected.

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Originally posted by transio
    Then, write a javascript that applies the proper stylesheet based upon the browser detected.
    I believe that can be done in PHP, a lot less messy and faster (I presume).
    JR

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    i suppose it could be done with PHP, but JS is transportable

  6. #5
    Senior Member tha_Gsheep's Avatar
    Join Date
    Feb 2003
    Location
    Scotland
    Posts
    188
    Member #
    780
    Yeah, thx guys but instead I just repositioned the layer and set left and right margin widths instead. Its always the simpilist things that are the answer, some guy on IRC pointed it out to me.
    www.appletv.co.uk

  7. #6
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Sounds good Sometimes if you play with things you get them to work correctly. Of course, margins don't always suit your purpose (for instance, if you have a background color).

  8. #7
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Originally posted by transio
    i suppose it could be done with PHP, but JS is transportable
    He likely means that PHP would be cleaner because it would be server-side, not client-side
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  9. #8
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Yes, that and you don't have to worry about browser incompatibility so much.
    JR


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

alternative of paddings

,

padding alturnative

Click on a term to search for related topics.
All times are GMT -6. The time now is 05:43 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com