Archived

This topic is now archived and is closed to further replies.

  • 0

Header Text Position

Question

Posted · Report post

Hi can someone help me move the text ion the homepage near the search button to the left? I want to position the text between the last button and the search area all on one row

http://tinyurl.com/9krpfps

Share this post


Link to post
Share on other sites

9 answers to this question

Posted · Report post

Ok I think the div layer is <div class="icons" style="bottom: -48px; right: px;"> is that right?

Share this post


Link to post
Share on other sites

Posted · Report post

What code are you using to add the text?

Share this post


Link to post
Share on other sites

Posted · Report post

Im using

add_action('pagelines_branding_icons_start', 'brand_phone');

function brand_phone(){ ?>

<h6 class="phoneRight">Tel 0203777546</h6>

<?php

}

If there a better and more simple way Im keen to find out!

Share this post


Link to post
Share on other sites

Posted · Report post

You should use a DIV layer instead of a heading tag:

<div class="phoneRight">Tel 0203777546</div>
And then add this CSS to Custom CSS:
div.phoneRight {width: #px;}[/code]

Change # to the DIV layer width.

Share this post


Link to post
Share on other sites

Posted · Report post

You’ll need to use Custom CSS (in Site Options > Custom Code > Custom CSS). CSS that changes the style of a page element consists of two parts: the selector and the attribute.

Selector: Used to select the page element you want to change (in this case, the page element you want to change is your text).

Attribute: Property that determines what kind of change you want (you’re changing the text position, so the attribute you want to use is the margin property).

To find the selector for the text, you'll need to use Firebug (or Chrome Development tools). To learn how to use Firebug for CSS customizations, please read and follow these instructions: http://www.pagelines.com/wiki/Custom_CSS.

For help with the margin attribute, please see these instructions: http://www.w3schools.com/css/css_margin.asp

Share this post


Link to post
Share on other sites

Posted · Report post

thanks Catrina much appreciated

Share this post


Link to post
Share on other sites

Posted · Report post

Do you need further assistance with anything else or did the code work?

Share this post


Link to post
Share on other sites

Posted · Report post

thanks I found some code in the forums which I've used but the text wont stay on the same row, any ideas?

Share this post


Link to post
Share on other sites

Posted · Report post

You'll need to increase the width of the <DIV> layer the text is in so that it's wide enough to fit the entire line. The width attribute is:

width: #px;[/CODE]

Replace # with the number of pixels.

Share this post


Link to post
Share on other sites