HTML Problem with database outputgreenspun.com : LUSENET : S-Mart Shopping Cart : One Thread
I am trying to edit the output of the html which generates the tables so that they have a single color border of black. The code I am using is as follows:
The only problem is the script is now giving me errors when I try and run the script, I get the good old 500 error in ie5 (I would also like to be able to center all the cells). Any help would be grate
-- Sam (email@example.com), July 19, 1999
You have to place a backslash before the quote marks. Change your line:
table border="1" width="100%" bordercolor="#000000" cellspacing="0" cellpadding="0"
To look like this.
table border=\"1\" width=\"100%\" bordercolor=\"#000000\" cellspacing=\"0\" cellpadding=\"0\"
To center the cells place the center command before everything you what to change and place /center at the end of line.
-- James L. Farmer (firstname.lastname@example.org), July 19, 1999.
Thanks to jims answer I managed to get that part working, my only problem is now there is a problem with the look part of the tables show a flat colour on the click to buy button.
The main problem is the Name, price and the ammount cells are not a flat colour but a slightly spaced apart border which I can't for live or money get rid of.
I've also noticed all the tables/cells have shiffted to the right which is causing a 1cm gap :-(
-- sam (email@example.com), July 20, 1999.
To center table fields you would use the
command rather then .
Adding the center commands using up much more space to preform the sam e task :)
-- Lois (firstname.lastname@example.org), July 25, 1999.
Moderation questions? read the FAQ