Forum Moderators: open
I need to create new text on the top right of my website next to this text which is aligned left :
<span style="color:#FFFFFF;font-family: Futura bk; font-size:12px;letter-spacing:2px">my current text on the left</h1></span>
I have this text on the left and to the right of it I want to write a phone number with a different color, different font size but on the same line.
What line of code do I need to add next to the one listed below.
Thanks,
I tried what you said but my phone number stays next to the text on the left and I want space and want it sperated from the rest of the text on the right. Thank you,
<h1><span style="color:#FFFFFF;font-family: Futura bk;font-size:17px;letter-spacing:5px;" href="'. URL_ROOT .'/" onclick="mywebmastercompanyname.Page.Open('. $homepage_oid .'); return false;">mycompanyname</span><br/>
<span style="color:#FFFFFF;font-family: Futura bk; font-size:12px;letter-spacing:2px">my text on the left r</h1></span>
<h1 style="font-size:17px;">mycompanyname</h1>
<p style="margin-top:-17px;text-align:right;">this text is aligned right</p>
...or
<h1 style="font-size:17px;">mycompanyname</h1>
<p style="position:relative;top:-17;text-align:right;">this text is aligned right</p>
If having the right element element in the same H1 tag is important, then you can come close to that look if your page has a fixed width with mark-up like this:
<h1>mycompanyname<span style="padding-left:500px;">this text is spaced 500px to the right</span></h1>