1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

cant get text to the top of the div?

Discussion in 'HTML & Website Design' started by Kurt Whittingham, Jul 26, 2012.

  1. #1
    this is the html
    <div id="follow">
                        <h3>FOLLOW MOTORBIKECENTRAL</h3>
                        <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fmotorbikecentral&amp;send=false&amp;layout=standard&amp;width=300&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:80px;" allowTransparency="true"></iframe>
            </div>
    HTML:
    and this is the css

    rightbar {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        padding: 0px;
        width: 30%;
        text-align:right;
        min-height: 200px;
        float: left;
    }
    #adv {
        border:1px solid grey;
    }
    #follow {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: auto;
        margin-right: auto;
        padding: 2px;
        border:1px solid grey;
        text-align:left;
        float: left;
        width: 335px;
        position: absolute;
    }
    Code (markup):

     
    Solved! View solution.
    Kurt Whittingham, Jul 26, 2012 IP
  2. Optimumsententia

    Optimumsententia Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well if you are referring to the h3 then try editing that in CSS and removing top margin or padding. You could also try removing padding from the div.
     
    Optimumsententia, Jul 27, 2012 IP
  3. #3
    
    rightbar {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: ;
        margin-right: auto;
        position: relative;
        padding: 0px;
        width: 30%;
        text-align:right;
        min-height: 200px;
        float: left;
    }
    #adv {
        border:1px solid grey;
    }
    #follow {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: auto;
        margin-right: auto;
        padding: 2px;
        border:1px solid grey;
        text-align:left;
        float: left;
        width: 335px;
        position: absolute;
    }
    h3 {
    	margin-top: 0;
    	padding-top: 0;
    }
    
    Code (markup):
     
    3dy.ro, Jul 27, 2012 IP
  4. Mili19

    Mili19 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    All you need to do is..,

    Set Style to <H3>

    margin-top:0px;
    padding-top:0px;

    Done..!!
     
    Mili19, Jul 29, 2012 IP