Internet help: (HTML) How do I make column width in pixels, but a table’s size in percent? - Help.com

(HTML) How do I make column width in pixels, but a table’s size in percent?

I’m trying to make a website where I use a table (of course I’m using HTML). I made the overall table width at 100% of the page, but now I want to set a column inside that table to about 100-150 pixels. Is this possible? I’m using DreamWeaver, and DreamWeaver doesn’t seem to be able to do combinations of percent and pixels like that strangely enough? I can’t seem to figure it out, though I haven’t messed with the HTML code yet… An answer in Code or Dreamweaver would be appreciated immensely.

This open post was written 2 years, 7 months ago | V/U/S: 2,144, 4, 1 | Edit Post | Leave a reply | Report Post


Reciprocity (0) Reciprocation Failure -- The poster has NOT helped anyone else yet!

Since writing this post strike911 may have helped people, but has not within the last 4 days. strike911 is a verified member, has been around for 2 years, 7 months and has 1 posts and 0 replies to their name.

Post Tags (6)

Replies (4)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

Jeff offline Verified User (3 years) Long Term User Shouts: 3 #
Gamla Stan, 26, SE | 2 years, 7 months ago (16 minutes after post)

You can do this manually pretty easily. Just jump into the code view and set the “width” attribute on that TD in question by hand.

Quote this reply Report this reply to moderators
rickybrennanjr offline Verified User (2 years, 10 months) Long Term User Shouts: 1 #
San Francisco, CA, US | 2 years, 7 months ago (21 minutes after post)

hmm well other than discouraging you from using tables unless it’s tabular data (css & div’s are the way to go :-) usually you can mix % & fixed sizes, although your results will vary depending on browser, window size etc. I am personally *not* a fan of dreamweaver for a number of reasons, but on a side note what I would suggest is that you always preview in both Internet Explorer & Mozilla/Firefox browsers, don’t rely on DW’s preview pane, as it does not render the same (it’s tricky enough making pages that will look good in different browsers, as they interpret the html code & render the pages differently)

but also when DreamWeaver won’t let you do what you want to do, (and it often doesn’t, no offense to Macromedia), you can always get in there and edit the html yourself. In this case I believe that depending on what version of DW you are using, if you set up a table using %, it will assume that the whole table will use that measurement (but who the heck knows).

go the HTML edit pane, and format your sizes like:

THIS CELL IS 100 pixels

THIS CELL IS THE REMAINING WIDTH OF THE WINDOW (WINDOW minus 100 px)

good luck, have fun

Quote this reply Report this reply to moderators
Help me with: JP
Jeff offline Verified User (3 years) Long Term User Shouts: 3 #
Gamla Stan, 26, SE | 2 years, 7 months ago (47 minutes after post)

(html doesn’t show up in comments…)

Quote this reply Report this reply to moderators
Fire offline Verified User (2 years, 7 months) Long Term User Shouts: 9 #
An Unknown Location | 2 years, 6 months ago (1 month, 1 week after post)

css and divs are definetelly the best when possible, i have used javascript layouts before though. But more on track if you need more help, TURN TO GOOGLE. google can answer any small problem! And for future problems with html programs consider Nvu (nvu.com), i use this instead of dreamweaver, the reason? its free to download and in many cases more usefull. having two programs makes it more likely to achieve the desired effect. bewarned, nvu is slightly messier than dreamweaver.

Quote this reply Report this reply to moderators
Help me with: come awake?

Invite Others to Help

A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.