Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default positioning productName

    I am trying to position the product name adjacent to the category icon on the product info page. Perhaps I am going to strange lengths, but cross browser issues have led me to do this with tpl_modules_categor_icon_display.php:

    <div id="productHead">
    <div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo $category_icon_display_image; ?></div>

    <div id="productTitle">
    <!--bof Product Name-->
    <h1 id="productHead"><?php echo $products_name; ?></h1>
    <!--eof Product Name-->
    </div>
    </div>

    and I have this css:

    #categoryIcon { width:250px;position:relative;margin-left:30px;}
    #productHead {width:700px;margin-bottom;30px;position:absolute;}
    h1#productHead {color:#444;font-weight:normal;font-size:2.0em;float:right;position:relative;margin-top:-30px;}
    #productTitle {width:300px;position:relative;float:right;}

    Whatever variations on the theme I apply, the product name persists in floating over the top of the category icon, thus:

    http://arborio.com/124/index.php?mai...&products_id=3

    What is preventing the product name from floating right?

  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: positioning productName

    Have you tried text-align: right; instead? :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #3
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default Re: positioning productName

    Doh. Works perfectly. I mean, why would I look for the simple solution, when I can beat my head against the wall? Thanks so much.

  4. #4
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: positioning productName

    Glad to help :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

 

 

Similar Threads

  1. header positioning
    By tickle in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Oct 2009, 08:12 PM
  2. tagline positioning
    By ckosloff in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Jul 2008, 04:21 PM
  3. productName, product Prices - left align
    By cirque in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 May 2007, 03:41 PM
  4. IE 7 positioning issues
    By disciple in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Feb 2007, 02:06 AM

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