![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
www.midtownmuseumdistrict.org/Beauty02 is my attempt to align some table information with a corresponding picture. Before I added the <img...> information, everything lined up as I wanted, but adding the image changes it all...although there seems to be enough room where needed. |
#3
| |||
| |||
|
|
As I continue to add to/complicate my Web site, I encounter more problems that aren't solved by manuals or Google 8<{{ Here: www.midtownmuseumdistrict.org/Beauty02 is my attempt to align some table information with a corresponding picture. Before I added the <img...> information, everything lined up as I wanted, but adding the image changes it all...although there seems to be enough room where needed. I've tried various things to manually align the table and the image, but doing so forces wrapping in the table cells (shouldn't be needed, afaics...). No doubt my basic approach is wrong, but I don't know what to do here. Please advise. TIA |
#4
| |||||
| |||||
|
|
www.midtownmuseumdistrict.org/Beauty02 is my attempt to align some table information with a corresponding picture. Before I added the <img...> information, everything lined up as I wanted, but adding the image changes it all...although there seems to be enough room where needed. First of all, I'm assuming you mean that the table for Ide Mania has its columns divided differently from the columns of the other tables. If that's not what you mean, then you can stop reading. |
|
It's not the image you added, or any of your CSS, it's the extra top row which I presume you added around the same time as the image. It doesn't have the 35%/65% split width specifications you have in the td's of the respective first rows of the other tables. Get rid of the first row (you don't need it anyway, right?) or move (or at least copy) the width specs from the second to the first row. |
|
Turns out your question isn't really related to c.i.w.a.s, but then your site is underusing CSS, too. Do you really like code like: div style="text-align: center;" big><big><big><span style="font-weight: bold;"><u ? Or perhaps you're working through weeding that sort of thing out, for which I commend you, and wish you success. |
|
One last remark, only very remotely related to your query: A <title> like "Beauty" won't be too helpful for either visitors or search engine results. Try to fill it out a bit (e.g. "MMDNA Business Directory: Beauty Services"). |
|
HTH |
#5
| |||
| |||
|
|
www.midtownmuseumdistrict.org/Beauty02 is my attempt to align some table information with a corresponding picture. Before I added the <img...> information, everything lined up as I wanted, but adding the image changes it all...although there seems to be enough room where needed. I've tried various things to manually align the table and the image, but doing so forces wrapping in the table cells (shouldn't be needed, afaics...). No doubt my basic approach is wrong, but I don't know what to do here. Please advise. TIA Try narrowing your viewport. You'll see that the table is pushed below the picture. I don't imagine that's what you want, but I haven't worked on a solution. The basic issues, if I am not mistaken, are (a) <td> widths are *suggestions* to the browser, (b) there's no way to ensure that columns of different tables have the same widths, (c) you're specifying width attributes on your <td>s instead of using CSS. You have an awful lot of stylistic markup -- all those <b> and <big and <td width=>, for instance. |
|
I suggest replacing them by CSS. One solution is to get rid of all that cruft, change the first <td> on each line to <th>, and introduce these three style rules: table.ex1 {width:30em} table.ex1 th {font-weight:normal;width:35%;text-align:left} table.ex1 td {font-weight:bold} That reduces the size and complexity of your HTML considerably. It also fixes your width problem, at least in Firefox. I haven't tried it in other browsers. |
|
Not directly related to your question, but: MMDNA Businesses is a title, in fact the title of the page. Why is it a <div> rather than h1>? Similarly, Beauty Salons is evidently the first of three subjheads. Why is it buried in the table instead of an <h2>? |
#6
| |||
| |||
|
|
www.midtownmuseumdistrict.org/Beauty02 is my attempt to align some table information with a corresponding picture.... It's not the image you added, or any of your CSS, it's the extra top row which I presume you added around the same time as the image. It doesn't have the 35%/65% split width specifications you have in the td's of the respective first rows of the other tables... Yes, that's it exactly (good catch!). I added the blank table row to more attractively align the descriptive information with the picture's size. ... Is there a way to do a "vertical-align" on the table against the picture? If so, I wouldn't have to mess with blank lines and such... |
|
...Do you really like code like: div style="text-align: center;" big><big><big><span style="font-weight: bold;"><u ? That code was generated by HTML-Kit, which is the editor I'm using to develop the site. Again, after some review by the organization, I'll want to clean this sort of thing up. 8<}} |
|
HTH It did indeed! |
#7
| |||
| |||
|
|
Yeah, more development kludges that I'll want to refine later... |
#8
| |||
| |||
|
|
Try narrowing your viewport. You'll see that the table is pushed below the picture. I don't imagine that's what you want, but I haven't worked on a solution. |
![]() |
| Thread Tools | |
| Display Modes | |
| |