Jump to content

target a specific table cell or column


mgason

Recommended Posts

Hi,this code below is generated by the CMS. I can go into the PHP and change the structure if I have to, but that is a change that needs to be maintained when updating.Is there a way that I can hide the cell indicated, or even the whole column using css?ThanksMark

<tbody><tr class="firstrow">		<td class="firstcol"></td>		<td>Product:</td>		<td>Quantity:</td>					<td>Shipping:</td> /* THIS IS THE CELL OR COLUMN I NEED TO HIDE */				<td></td>		<td class="price" style="text-align:right;padding-right:10px;">Price:</td>	</tr>         					<tr class="product_row">			<td class="firstcol"><img src="http://localhost:8888/craft/wp-content/uploads/2011/05/yellow_1-48x47.jpg" alt="#01 - yellow (large)" title="#01 - yellow (large)"></td>			<td class="firstcol">			<a href="http://localhost:8888/craft/products-page/felt-100-percent-wool/01-yellow/">#01 - yellow (large)</a>			</td>			<td>				<form action="http://localhost:8888/craft/products-page/checkout/" method="post" class="adjustform">					<input name="quantity" size="2" value="1" type="text">					<input name="key" value="0" type="hidden">					<input name="wpsc_update_quantity" value="true" type="hidden">					<input value="Update" name="submit" type="submit">				</form>			</td>						<td><span class="pricedisplay" id="shipping_0"><span class="pricedisplay"> $0.00</span></span></td>						<td>				<form action="http://localhost:8888/craft/products-page/checkout/" method="post" class="adjustform">					<input name="quantity" value="0" type="hidden">					<input name="key" value="0" type="hidden">					<input name="wpsc_update_quantity" value="true" type="hidden">					<button class="remove_button" type="submit"><span>Remove</span></button>				</form>			</td>						<td class="price" style="text-align:right;padding-right:10px;">				<span class="pricedisplay"><span class="pricedisplay"> $10.00</span></span>			</td>		</tr>            </tbody>

Link to comment
Share on other sites

You can with JavaScript but you shouldn't relay on it removing the cell. JavaScript can easily be turned off or disabled through extensions. Best way to go is to remove the cell from the code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...