Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2013
    Posts
    20

    Default Responsive Site Top Margin

    Can anyone tell me how to add a top margin to a responsive site. Using the following code:
    <style>
    #xr_xr {
    margin-top: 15px;
    }
    </style>

    This code works fine when inserted into the head tag for a non responsive site, but will not work for a responsive site.
    I have been told to use the <element> tag instead of the <style> tag but I am unsure is this is correct or how to use it
    Can anyone help me please?
    many thanks in advance

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,505

    Default Re: Responsive Site Top Margin

    I have moved this topic to the Web Design Forum.

  3. #3
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: Responsive Site Top Margin

    This seems to work (only gave it a brief test, let us know how you get on)

    Code:
    <style type="text/css">
    div.xr_ap {
    margin-top: 15px;
    }
    </style>

  4. #4
    Join Date
    Aug 2013
    Posts
    20

    Default Re: Responsive Site Top Margin

    Thanks for your quick response.....and yes it appears to work fine.....

 

 

Bookmarks

Posting Permissions

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