Results 1 to 10 of 24

Hybrid View

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

    Default Re: Product Description Page Alignment Help

    <div style="border:1px solid #ff0000; float:left;width: 790px">

    gives all of the styling inline in your PHP file, without reference to the stylesheet. The more "proper" way would be to use something like

    <div class="myAttributes">

    in the PHP file, and add to your stylesheet

    .myAttributes {border:1px solid #ff0000; float:left; width: 790px;}


    ...Like keneso said:)

  2. #2

    Default Re: Product Description Page Alignment Help

    Quote Originally Posted by gjh42 View Post
    <div style="border:1px solid #ff0000; float:left;width: 790px">

    gives all of the styling inline in your PHP file, without reference to the stylesheet. The more "proper" way would be to use something like

    <div class="myAttributes">

    in the PHP file, and add to your stylesheet

    .myAttributes {border:1px solid #ff0000; float:left; width: 790px;}


    ...Like keneso said:)
    Thank you! I think I got it. :)

  3. #3
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Product Description Page Alignment Help

    You are on the right track.

    Sorry I forgot to tell you should add float: left to your productAttributes in stylesheet.

    And like said the myAttributes should start right after productDescription, and end after productAttributes.

  4. #4

    Default Re: Product Description Page Alignment Help

    Quote Originally Posted by keneso View Post
    You are on the right track.

    Sorry I forgot to tell you should add float: left to your productAttributes in stylesheet.

    And like said the myAttributes should start right after productDescription, and end after productAttributes.
    Okay I think I got it. This stuff can be confusing sometimes. lol

    Is that how it's supposed to look?

  5. #5
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Product Description Page Alignment Help

    Yes, now it's almost done, add the
    float: left;
    to your #productAttributes in the stylesheet

    #productAttributes {
    background: none repeat scroll 0 0 #E4E3CC;
    border: 1px solid #F3ECD9;
    float: left;
    padding: 10px 14px;
    }

    Then tweak all to your likes, don't forget the pinit button, which is overlapping the socials.

  6. #6

    Default Re: Product Description Page Alignment Help

    Quote Originally Posted by keneso View Post
    Yes, now it's almost done, add the
    float: left;
    to your #productAttributes in the stylesheet

    #productAttributes {
    background: none repeat scroll 0 0 #E4E3CC;
    border: 1px solid #F3ECD9;
    float: left;
    padding: 10px 14px;
    }

    Then tweak all to your likes, don't forget the pinit button, which is overlapping the socials.
    I did change that before. Idk why it's not moving to the left.

  7. #7
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Product Description Page Alignment Help

    Well done, I see you got it.

    Now add this last to myAttributes
    margin: 19px 0 19px 0;
    to put a little space between the product description, and the extra images.

    And if you want a bit more consistency among the various products, add a width: 550px; to the #productAttributes
    Last edited by keneso; 26 Mar 2012 at 06:28 PM.

 

 

Similar Threads

  1. Product description alignment
    By krisdiamond in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jan 2011, 10:42 PM
  2. Need help with horizontal alignment of product page
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jul 2010, 09:21 AM
  3. product description alignment
    By louisapple in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Apr 2009, 04:51 PM
  4. Product Description Alignment Question
    By DPM in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 29 Apr 2009, 09:14 AM
  5. Product Image and Description Alignment
    By Stenrique in forum Basic Configuration
    Replies: 3
    Last Post: 2 Nov 2006, 05:58 PM

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