close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ProductLongDesc on Products_Detail.php PS3

Thread began 12/27/2011 8:21 pm by mick106153 | Last modified 1/17/2012 1:29 am by mick106153 | 1218 views | 5 replies |

mick106153

ProductLongDesc on Products_Detail.php PS3

ProductLongDesc on Products_Detail.php in PS3
Using this page as an example…

Products_Detail.php?ProductID=293

I need the ProductLongDesc div to expand into the empty space below the image.
Any ideas?

Mick

Sign in to reply to this post

Jason ByrnesWebAssist

on the product_detail.php page, find the following code:

php:
<div class="productDetailWrapper">

      <div class="image">
        <div class="imageWrapper"><img id="ProductImage"  src="imagesupload/<?php echo $row_WADAProducts['ProductImage']; ?>" /></div>
      </div>
      <div class="addToCart">
        <h1 id="WADAPageTitle"><?php echo $row_WADAProducts["ProductName"]; ?></h1>




and change it to:

php:
<div class="productDetailWrapper">

      <div class="addToCart">
        <div class="image">
        <div class="imageWrapper"><img id="ProductImage"  src="imagesupload/<?php echo $row_WADAProducts['ProductImage']; ?>" /></div>
        </div>
        <h1 id="WADAPageTitle"><?php echo $row_WADAProducts["ProductName"]; ?></h1>




then in the css/common.css file, change:

.productDetailWrapper .addToCart {
background-image: url("../Images/addToCart_bg.png");
background-position: 50% 100%;
background-repeat: no-repeat;
float: right;
margin-left: 0;
margin-right: 0;
min-width: 350px;
padding: 2px 0 12px 12px;
width: 370px;
}



to:

.productDetailWrapper .addToCart {
background-image: url("../Images/addToCart_bg.png");
background-position: 50% 100%;
background-repeat: no-repeat;
float: right;
margin-left: 0;
margin-right: 0;
min-width: 350px;
padding: 2px 0 12px 12px;
//width: 370px;
}
Sign in to reply to this post

mick106153

You Sir are a genius.

Thank you

Mick

Sign in to reply to this post

mick106153

Jason

I noticed that any product that didn't have enough data to expand into that lower space caused everything to be forced to the right.
I removed width:auto and replaced it with width:725px and everything seems to be displaying correctly now.
Do you foresee any problems with doing what I've done?

Yours

Mick

Sign in to reply to this post

Ray BorduinWebAssist

No, that is a perfectly acceptable solution as far as I can tell.

Sign in to reply to this post

mick106153

Thank you

Mick

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...