Html 对齐h2标题旁边的链接

Html 对齐h2标题旁边的链接,html,css,alignment,Html,Css,Alignment,非常简单的问题,我如何强制链接与h2标题内联显示? 我有以下代码:我希望“返回顶部”链接与“社交媒体”标题内联显示,但我尝试的一切似乎都不起作用。甚至跨度的使用 任何帮助都将不胜感激 jme1988 注意,我要说的是,这就是我想要的效果: 应用以下样式: .page_title{ font-size:18px; font-family: Arial,Helvetica,sans-serif; font-weight:400; padding-left:16PX;

非常简单的问题,我如何强制链接与h2标题内联显示? 我有以下代码:我希望“返回顶部”链接与“社交媒体”标题内联显示,但我尝试的一切似乎都不起作用。甚至跨度的使用

任何帮助都将不胜感激

jme1988
注意,我要说的是,这就是我想要的效果:


应用以下样式:

.page_title{
    font-size:18px;
    font-family: Arial,Helvetica,sans-serif;
    font-weight:400;
    padding-left:16PX;
    /*color:#053452; Dark Blue*/
    color: #729ABD;
    float:left;  //Added float
}

.b2t_link{
   float: right;
   margin-left: 794px;  //Reduced margin by width of page-title
   font-family: 'FamiliarProBold',Arial,Helvetica,sans-serif;
   font-size: 11px;
   color: #729ABD;    
}


.two_col_textAndImage_text{
   width: 720px;
   font-size: 11px;
   display: block;
   float: left;
   padding-left: 5px;
   padding-right: 5px;
   padding-top: 10px;
   min-height: 300px;    
}

#main-content{
   clear:both;   
}
然后在html中,用id
主内容将图像和文本包装在
div

     <div id="main-content">
        <div class="two_col_textAndImage_text">
            <h2 class="item_title_no_image">Social Media Integrations</h2>
            <p class="item_text_no_image">
                Social Media is fast becoming a channel for advertising, promoting and applying for vacancies. Some organisations have fully embraced this within their recruitment strategies whilst others have not yet or do not wish to adopt this trend. Whatever the view of your own organisation's recruitment channels, ATS2go has been designed to integrate seamlessly with social media. <br/><br/>
                Social Media buttons, such as Facebook, Twitter and LinkedIn can be embedded within you vacancy postings enabling visitors to your site to forward a link to their friends and contacts about your vacancies. In addition, ATS2go includes automative "Job Tweets" for your vacancies which include a link back to your recruitment page; people simply click on the link within the Tweet and can then find out more about the role and hopefully submit their application immediately - simple, easy and free! <br/><br/>
            </p>
        </div>
        <div class="two_col_textAndImage_image">
          <img / src="https://text-development.ats2go.com/img/content_images/social-media.jpg" width="250px"/>
        </div>
   </div>

社交媒体整合

社交媒体正迅速成为广告、促销和求职的渠道。一些组织已在其招聘策略中充分采纳了这一点,而其他组织尚未或不希望采纳这一趋势。无论您对自己组织的招聘渠道有何看法,ATS2go都旨在与社交媒体无缝集成

社交媒体按钮,如Facebook、Twitter和LinkedIn,可以嵌入到你的职位公告中,使你网站的访问者能够转发到他们的朋友和联系人关于你的职位空缺的链接。此外,ATS2go还为您的职位空缺自动发送“招聘推文”,其中包括一个链接,可返回到您的招聘页面;人们只需点击Tweet中的链接,就可以了解更多关于这个角色的信息,并希望立即提交他们的应用程序——简单、简单、免费


示例:

您可以将链接放在h2中

另一种观点:

HTML:


添加此css

.b2t_link{
float:right;
    margin-left:0;
}
.page_title{
display:inline-block;
    vertical-align:top;
}

@jme1988接得好,我没看到,因为小提琴在滚动。我更新了解决方案并进行了修改。顺便说一句,
two\u col\u text和image\u image
div有一个开放端标签。
.b2t_link{
    float: right;
}
.b2t_link{
float:right;
    margin-left:0;
}
.page_title{
display:inline-block;
    vertical-align:top;
}