Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Aligning text next to logo...

    Could someone please have a look at my home page and tell me how I format the text so it sits to the left of the manufacturers logo.

    I have tried doing it with Zencarts 'define pages' html editor, but just can't get the text to sit next to the logo.

    Any help would be much appreciated...

    Arkie....

  2. #2
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: Aligning text next to logo...

    use "float: left" instead of "text-align: left"
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  3. #3
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Aligning text next to logo...

    Thanks for the reply...

    I may have done it wrong, but changing 'text-align' to 'float' didn't bring the text alongside the image, it left the text where it was but just made it overlap with the 'monthly specials' box..

    Arkie...

  4. #4
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Aligning text next to logo...

    Still having problems....

    I have now inserted the image using the following code as opposed to hosting the image off site via Zencarts HTML editor.

    <?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'main page logos.jpg', 'Float On By The One Stop Hook & Float Shop');?>

    This has put the image to the left above the text.

    What do I need to change to make the image align right and the text align left next to the image?

    Arkie....

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Aligning text next to logo...

    #indexDefaultMainContent img {float: right;}

  6. #6
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Aligning text next to logo...

    Thanks for the reply

    Sorry for being a bit dumb, but not sure what you mean by

    #indexDefaultMainContent img {float: right;}

    Am I supposed to insert that code somewhere?

    Thanks
    Arkie...

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Aligning text next to logo...

    Sorry, you would add that to your stylesheet.

    It can go at the bottom of the file, or in with the other "Images" declarations as you like.

  8. #8
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Aligning text next to logo...

    Thanks again for the quick reply...

    I have inserted the code and it has moved the image to the right, but if you now look at my homepage, it overlaps with the 'monthly specials' box and is out of line with the text on the left....

    Any ideas?

    Arkie...

  9. #9
    Join Date
    Oct 2007
    Posts
    107
    Plugin Contributions
    0

    Default Re: Aligning text next to logo...

    I've solved the problem by inserting breaks at the end of the text to push the 'monthly specials' box further down the page.

    Is this an acceptable solution to the problem?

    Arkie....

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Aligning text next to logo...

    As long as you have a fixed width page so that wider screens don't make the text fit on fewer lines, you should be fine.

    What might be more flexible and positive is to make just one break at the end of the text, like
    <br class="clearBoth" />.
    That will push the break and anything after it below the floated image.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Adding text next to my logo on front page
    By gwyllion in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Jul 2012, 09:30 PM
  2. v150 Adding text in empty space next to my logo
    By gwyllion in forum General Questions
    Replies: 2
    Last Post: 30 Jun 2012, 07:23 PM
  3. Adding text next to logo
    By mikem198 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 4 Mar 2011, 11:55 PM
  4. logo not aligning to center
    By pearljamgurl in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Dec 2007, 10:07 PM
  5. Aligning logo
    By wcjmproducer in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Jul 2006, 12:31 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR