close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to edit CSS of DataAssist/eCart

Thread began 3/04/2010 2:38 pm by koneill385535 | Last modified 3/07/2010 8:14 am by neilo | 863 views | 5 replies |

koneill385535

How to edit CSS of DataAssist/eCart

Hi,

I have been trying to edit the CSS for a couple of my WebAssist pages, and I can't quite figure out what I am doing wrong. I can't seem to change the CSS under Modular_Slate.css and my pages are just a little bit funky. For instance:

The fields are all different lengths, and I can't seem to restrain the widths:
products_Insert.php


The add to cart button and the field next to it aren't aligned properly:
products_Detail.php?ProductID=8.php

Is there a tutorial or something to teach me how to edit these, or maybe if you can just give me the solutions to these two issues, I can figure it out by example. Thank you!

Sign in to reply to this post

Jimmy Wu

The width of these items is defined by the size property for the text field inputs and the cols property of the textarea inputs.

For example, find the line of code that looks like this:
<textarea id="ProductLongDesc" cols="32" name="ProductLongDesc"/>

That's the definition of the textarea. If you change the cols="32" to something like cols="28" the width will change on that.

For the text field, take a look at this line:
<input id="ProductSKU" type="text" size="32" value="" name="ProductSKU"/>

That's the definition of a text field. If you change the size="32" to something like size="28" the width will change on that.

Sign in to reply to this post

koneill385535

Thank you, that makes a lot of sense. Is there a way to make them the same size though? I tried cols=24 but it was too small and cols=25 is too big.

Sign in to reply to this post

Jimmy Wu

If you set a width in the Modular Slate.css file for this section:
.WADADataTableCell

The width of each of the elements in the table should be the same. Setting the width will override the cols or size setting. The block should look something like this when you're done:
.WADADataTableCell {
font-size:11px;
width:300px;
}

Sign in to reply to this post

koneill385535

Hmm... it didn't seem to work.

products_Insert.php

Does the CSS work for multi-line cells?

Sign in to reply to this post

neilo

Hiya,

You could add two classes to your Modular_Slate.css stylesheet, add them to the end:

.input {
width:250px;
}
.inputFile {
width:255px;
}


and save the stylesheet.

Leave the width of the WADADataTableCell at 300px.

On the page with the form, assign these classes to your form fields. Select each field, and select 'input' from the 'class' drop-down select list in the properties inspector. Assign the 'inputFile' class to your file field only.

The file field is a tricky one to get right for both Firefox and IE, but if you give it the width of 255px by assigning it the above class, and a Character width of 25 (in the properties inspector) it should be about right. (Or you could create an IE conditional statement on each page)


In your product details page, for the image button to align with the 'amount' field, you can give the image the align="absmiddle" property:

<input type="image" border="0" align="absmiddle" name="PracticeCart_1_ATC" value="Add to Cart" src="WA_eCart/Images/Slate/Btn4_EN_addtocart.gif">
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...