Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 03-04-2008, 11:51   #11
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

OK, I've got InDesign chucking out some html table code and some CSS classes...

Code:
			<div class="story">
				<table>
					<tbody>
						<tr>
							<td  colspan="3">
								<p class="titles">Sliced Fillet Steak Dishes</p>
							</td>
						</tr>
						<tr>
							<td>
								<p class="text">211</p>
							</td>
							<td>
								<p class="text">Satay</p>
							</td>
							<td>
								<p class="text">£6.20</p>
							</td>
						</tr>
						<tr>
							<td>
								<p class="text">212</p>
							</td>
							<td>
								<p class="text">Kin Do</p>
							</td>
							<td>
								<p class="text">£6.20</p>
							</td>
						</tr>
						<tr>
							<td>
								<p class="text">213</p>
							</td>
							<td>
								<p class="text">Kung Po</p>
							</td>
							<td>
								<p class="text">£6.20</p>
							</td>
						</tr>
						<tr>
							<td>
								<p class="text">214</p>
							</td>
							<td>
								<p class="text">Green Pepper &amp; Black Bean Sauce</p>
							</td>
							<td>
								<p class="text">£6.20</p>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
...but I can't seem to format it how I want. The max table width is 600px. Ideally I want to force the first column (dish number) to be narrow, the second column (dish) to be wide and the the third column (price) to be narrow. Can this be done in anyway? Ideally without have to add too much code to the html. At the moment they all seem to automatically set their width.
__________________
Desmo is offline   Reply With Quote
Old 03-04-2008, 13:00   #12
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

Just add

width="XXXpx"

to the <td > bit of code, and it will make that part of the table however many pixels you tell it (for example, td width="100px").
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 03-04-2008, 13:05   #13
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

Yeah, had the width set but the other columns went a bit crap. Think I've got it mostly sorted now though
__________________
Desmo is offline   Reply With Quote
Old 03-04-2008, 14:17   #14
Desmo
The Last Airbender
 
Desmo's Avatar
 
Join Date: Jun 2006
Location: Pigmopad
Posts: 11,915
Default

Wohooo, got the whole HTML and CSS pretty much perfected now. And it doesn't take me too long to get the text from InDesign and get it formatted how I need it
__________________
Desmo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 22:45.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.