shinokage — 2010-05-29T13:34:15-04:00 — #1
Okay, so I am finally working on my portfolio (and I'm having issues, how ironic); in any case, I am using divs as tables (I have no idea how to word that properly), and everything was going smoothly until I added an image to one of the cells....
I had to insert the wooden spoon handle in the next col as an image to get it to appear how I want, which worked fine except now the col that it's in became way too wide and I don't know why or how to fix it....
<img src="images/backgrounds/mixingbowl_handle.png" alt="" id="woodenspoon" />
<p>Main content here</p>
<li><a href="#">Home - block style</a></li>
/* NAVIGATION STUFF */
width: /* fixed width to be determined - padding */;
background-repeat: no repeat;
width: /* fixed */
shinokage — 2010-06-01T11:32:56-04:00 — #2
Ryan -- thank you. Now I just feel like an idiot.... I was changing the properties of one of the divs and adding another and totally forgot to change that display: table-cell to the correct div.
Well, at least it was an easy fix.
ryanreese — 2010-06-01T13:24:10-04:00 — #3
Don't feel like an idiot-it's easy to overspot something like that :).
shinokage — 2010-06-01T11:28:21-04:00 — #4
Thank you -- that was very much appreciated ^_^ I'm new here (obviously) so I wasn't exactly sure where this thread should go x.x
ryanreese — 2010-06-01T00:08:51-04:00 — #5
Hi, the problem is that you are trying to do this as tables correct? Thus meaning these 3 elements need display:table-cell
(and I guess #rightcol)
Now, exclusing #rightcol (to make my point :)) which element doesn't have display:table-cell set? See spoiler below
Just set display:table-cell and it should patch up (I don't know if there was anything else you wanted :))
mittineague — 2010-05-31T21:33:55-04:00 — #6
Sorry, because you posted in Web Page Design I thought you were looking for alternatives to using tables for layout.
Hence my helpful suggestion - don't!
Personally I have very little patience with using tables for anything other than tabular data. Perhaps mainly because of problems similar to what you're experiencing.
But if you're set on this technique, I can help by moving the thread to the CSS forum. Hopefully someone with more experience with banging tables into shape will be able to help get things straightened out for you.
shinokage — 2010-05-30T00:32:29-04:00 — #7
1 - not helpful
2 - I'm doing it this way because this is how I want it to look. If you have an actual suggestion for getting this to display how I want it to, that would be great.
This is what it's suppose to look like: http://www.twilightmisfit.com/comp.jpg
mittineague — 2010-05-29T15:11:22-04:00 — #8
Welcome to the wonderful world of "using tables for layout".
Simply changing table tags to other elements and using CSS to render them as table elements isn't going to avoid the layout issues associated with using tables for layout (although it may be better for accessibilty I suppose).
I know you can use nested tables, colspan and rowspan with tables.
And I guess you could use CSS to mimic the effect here.
But why? IMHO you should consider scrapping the "display as table" stuff and go with an elastic/fluid design instead.