Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Use <div> tags in Product Info Page

    Not sure in which forum to post this question but I'm trying to use <div> tags in Product Info Page' description box. I want to use these layers to add images but it flows over the footer and header...

    I tried to embed the div tags within a table to keep the page structure but it's not working..

    Any ideas how I can do this and prevent the flowing?

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

    Default Re: Use <div> tags in Product Info Page

    A link to see what you have done so far?

  3. #3
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Use <div> tags in Product Info Page

    Quote Originally Posted by gjh42 View Post
    A link to see what you have done so far?

    Here is a link to the actual page I have the problem. You'll see the images flows over the 'Tell a Friend' icon

    Problem Page Here!

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

    Default Re: Use <div> tags in Product Info Page

    I'd say the principal problem is that you are using absolute positioning for two elements, which removes them from the pageflow and makes them occupy no space. The page layout doesn't see them and acts as if they are not there.
    Code:
    #Layer1 {
    	position:absolute;
    	top:150px;
    	border-right-width: 0px;
    	border-right-style: solid;
    	border-right-color: #FF0000;
    	width:220px;
    	height:100%px;
    	padding: 1em;
    	background-color:;
    	z-index:3;
    }	
    
    #mainImage {
    	position:absolute;
    	left:250px;
    	top:65px;
    	width:470px;
    	height:135px;
    	z-index:1;
    }
    
    #Layer3 {
    	
    border-right-width: 1px;
    	border-right-style: solid;
    	border-bottom-style: solid;
    	border-right-color: #FF0000;
    	border-bottom-color: #FF0000;
    	position: absolute;
    	height:250px;
    	width: 230px;
    	left: 495px;
    	top: 75px;
    	padding: 1em;
    	z-index:2;
    	}
    #LinkFree {
    	border: thin solid #000000;
    	background-color: #FFCC00;
    	position: absolute;
    	width:250px;
    	left: 255px;
    	top: 330px;
    	padding: 1em;
    	z-index: 4;
    }
    .mainpagestyle1 {
        font-size: 1.1em;
    	color: #FF0000;
    	font-weight: bold;
    Also, you are missing the last closing },
    and you have used HTML comments instead of CSS comments here:
    Code:
    .productListing-rowheading {
    	background-color: #abbbd3;
    	background-image: <!--url(../images/tile_back.gif)-->;
    	height: 2em;
    	color: #FFFFFF;
    	}
    should be
    Code:
    .productListing-rowheading {
    	background-color: #abbbd3;
    	background-image: /*url(../images/tile_back.gif)*/ none;
    	height: 2em;
    	color: #FFFFFF;
    	}
    It worked before because the error caused the line (or the whole rule for IE) to be ignored.

  5. #5
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Use <div> tags in Product Info Page

    Thank you, I fixed the comment and last closing..

    What should the positioning be? I tried 'fixed' but that didn't work either...

  6. #6
    Join Date
    Jul 2008
    Posts
    192
    Plugin Contributions
    0

    Default Re: Use <div> tags in Product Info Page

    'Static' does help to keep the structure correct but then I lose the coordinates and the stacking order...

 

 

Similar Threads

  1. Need to remove <table> tags [contentMainWrapper etc] and replace with <div> tags
    By Paul Randall in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Oct 2015, 12:29 PM
  2. Explanation of use of meta tags in product administration
    By RonGin in forum Basic Configuration
    Replies: 0
    Last Post: 4 Jan 2014, 05:22 PM
  3. Placing a DIV on product info pages
    By DML73 in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 18 Jun 2011, 11:17 PM
  4. CSS DIV or HTML TABLE for my product info page
    By Donn in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Mar 2009, 02:03 PM
  5. How to Use Medium Size Pic. in Product Info. Page?
    By Stenrique in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Oct 2006, 10:39 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