Forum Moderators: open
Mods, you can delink anything that I shouldn't link to; I was just trying to illustrate that I do do my homework occasionally. ^.^
[edited by: tedster at 8:27 pm (utc) on July 11, 2003]
I just need some way of making the table cells at the right and the left extend the full height of the main table. I'm so close...
I've done it and I'm not proud of it, but it does work. As pages change, the maintenance can get nasty, because I always forget that the spacer gif is there.
Let me see if I understand correctly. You have a main table with three tds (a,b,c):
¦-----------¦
¦ a ¦ b ¦ c ¦
¦-----------¦
Is this right?
If so, why not put your borders on cells (a) and (c), and not the enclosed tables? Each of these cells will be the height of the entire main table (which will be as high as it's tallest table cell).
>I still don't get why you made a website with over 100 pages for someone without using CSS.
To put it simply, I'm new to webdesign. I'm a technical writer who in the past has made webpages for hobbies. I work for a cheap company that's too dumb to realize it would've been cheaper to hire someone for the project. The boss said don't worry, it's pretty simple. I looked at the old website, said OK, I'd probably better start from scratch because your old WYSIWYG generated the most hideous code I've ever seen. It's a big job, and will probably take me a month. No problem, they said: Here's exactly what we want. No problem-- I could do exactly what they wanted. And did.
Well, they changed their minds about four huge times, so it's dragged on and on. Finally I finished it, and then and only then the boss came by and said "Ok, THIS is what I want" and sprang that last thing on me.
I knew no CSS when I started, and still know very little. I've done several of the "this is my pet cat" kind of websites, and that's all I had to work with, and no time to update my skills. I've done what I could.
We don't all have the time or the resources to follow the latest best practices when we're doing a project, no matter what the W3C may say. I'm also expected to be working on other projects, and now they've said I only have another week to work on this website. I've "finished" it four times now.
I do not have time to teach myself CSS; I have documentation and spec sheets to write. I just have to finish this d**n thing and get it done.
A Google search for "dreamweaver mx templates tutorial [google.com]" turns up a fair bit of additional material on the templating subject.
So I'm not quite happy with that feature, but flawed as it is, it's saved my life throughout this whole stupid project.
Sigh.
That's what I figured, and it's not working.
So there must be something wrong with my code, somewhere. I worked so hard in the beginning to make it as clear as possible, but it's just all muddled now. I can't figure out why it's not working. :-(
The boss was so excited when he finally managed to explain what he wanted to me. If only this worked I could make him so happy and he'd leave me alone and I could work on something I understood.
Ah, the terrible pain of life. I'm getting all Goth, now; I'd better just go print out the HTML and pore through it with a hi-liter and figure out what the heck is wrong. Phooey! WebmasterWorld has much advice, but no magic tricks to make it all better.
If I add a new editable region to the template, and then realize that I put it in slightly the wrong place, how can i remove the editable region from the template?
I personally haven't used Dreamweaver templates all that much, preferring dynamic includes with php and/or asp. But IIRC, all you have to do is modify the template by:
... when I put a reeditable region around the page title so that each page could have its own title, it moved, ...
That's strange. Are you using the latest version of Mx (6.1)? IIRC, there are issues with templates under 6.0.
Of course, the default html template already has an editable region around the title, so I am wondering why you would add another one ...
Mmm... mine didn't. I created a half-dozen pages before I noticed it, and had to go back and add it in. I didn't know much about Dreamweaver at this point, so I can't remember what template I used to start from. It also lacked a valid DOCTYPE declaration, so I had to add that in as well, which struck me as odd. It's possible that in my total ignorance of Dreamweaver I used some kind of nonstandard template? I have no idea at this point.
>Are you using the latest version of Mx (6.1)?
No. I bought it and downloaded whatever updates I could find, and it's still 6.0. Do I have to pay to upgrade it? I wasn't able to find any reference to that anywhere else. I guess I'll go poke around Macromedia's website; as it is I can't fix the damage that's been done because it's fine on the template page, but there's duplicated code on the subsidiary pages in non-editable regions, so I can't remove the reduplicated code that should be inside the editable region but is not (but is in the template... the only place where I can edit it). I don't want to strip out the template and replace it with a new one for fear of making an even bigger mess...
Argh, my boss stopped by and he seems to think I'm just stalling. I cannot make him understand how hard this is for me!
I figured it out. Thank you all.
Here's the problem:
You can't put borders on table cells. That doesn't work. You can only put a border on a whole table, and the table is only as large as its contents. That's what wasn't working, in part. I waded through all my HTML code and flagged every stinking open table tag, and close table tag, to see if anything was wrong, and couldn't figure it out.
But you can change the background color. The boss (fortunately) changed his mind again, and that's what he wants now.
You could probably work around the border thing by using a graphic for the background of the table cell and sizing it to 100% or whatever you needed-- I haven't tested that but it would probably work.
I can change the background color of the table cells, and it works. It seems to carry through to the internal tables as well. But I'm not convinced that it'll work in all the browsers. So there I'll use CSS (what little I know, I know I'm hopeless) and make the table cell have a class with a different background color. (I already had a class for the side menu to make the links a different color, so no biggie to add to it.)
So that's the solution, and now my boss will love me and give me more money. Right? Well, no. But it's the solution at least.
No glory, but I'd rather have a steady paycheck than glory. I guess.
Out of curiosity, how would you put a border around a CSS-structured "table cell"? I'm going to do some research for my own edification on structural CSS (just got a new computer, and am going to use it to put together a fabulous new personal website!) but I haven't gotten around to it yet. (Apple's developer website has a great link to an introduction to structural CSS that I haven't had a chance to read yet. I'd post the URL but I'm pretty lazy and am supposed to be implementing the changes to the website now.)
Thanks, everybody! And, I'll be back, here and in the CSS forum, in the near future. :-)
I feel so smart. ^.^
Do I have to pay to upgrade it?
No, Dreamweaver MX 6.1 is a free update [macromedia.com].
Out of curiosity, how would you put a border around a CSS-structured "table cell"?
td { border-width [w3.org]: 1px; border-style [w3.org]: solid; border-color [w3.org]: #000 }
Would give you a 1px solid black border on all your table cells. You can shorthand [w3.org] it further as:
td { border [w3.org]: 1px solid #000 }
To apply it to a specific cell you would put an id on it like <td id="foo"> and then call it with td#foo [w3.org]. If you have several cells with the same attribute, you would class it (<td class="foo">) and call it with td.foo [w3.org].
How do I apply that to the entirety of the contents of the class (tables, trs, tds?)-- I'm calling the class by <td class="classside">.
Am I on the right track here? In Dreamweaver's preview window (which is generally wrong) it works, but not in IE or Mozilla. Am I on the right track, or should i just give up, go home and read the entire CSS1 Spec that I printed out for future reference but barely skimmed? (In My Copious Free Time.)
No need to actually answer, as I'm wavering off-topic now for this forum, but that's the level I'm at: CSS moron and HTML Novice. I just don't have time to get a proper handle on this. I learn just enough to do what I need to, and then I forget everything in three days! It's very frustrating, and the most annoying part of doing the job of 3 people. (This was a 4 person department and they fired the manager, didn't replace her, and hired me right out of college to become the all-purpose lackey. So I'm 50% of this whole department, me and another bewildered junior employee. Yow.)
How do I apply that to the entirety of the contents of the class (tables, trs, tds?)-- I'm calling the class by <td class="classside">
If I understand your question correctly, you would do it using Descendent selectors [w3.org]. So your selector for the class would be:
.classside table { /* style */ }
.classside tr { /* style */ }
.classside td { /* style */ }
If they are all the same style, you can group them like this:
.classside table, .classside tr, .classside td { /* style */ }
I get the idea, it's just so helpful to see it written out in one place without sifting through all kinds of other things that I'm not using right now. I just haven't had time to sort out what goes where, and write it down in my own style so I can reference it again. There's never time to do anything properly, so you end up having to re-learn it every time you use it. Blah, I'm so tired of this job and I've only been here half a year! I hope it gets easier. :-)
So, thank you very, very much, and I'll try to do my homework next time before posting a question. It's hard to take time out for homework when the boss is hovering because he wants the project done right now... I'm glad he's taking an interest instead of forgetting I work here (it's only so long before they forget why they pay you, once they forget you're there), but I wish he'd go away for about a day while I make sure I actually know what I'm doing here. ^.^
You can use height="100%". It's not officially valid HTML (for some incomprehensible reason) but it works fine in IE 5+.
Which, incidently, is used by over 95% of the vistors to a high traffic site I was just looking through the stats for... and over 93% of a site I was looking at yesterday. :-)
If you can come up with something that looks passable in the remaining 5-10%, using height="100%" isn't a problem.
It didn't work, actually. I'm not sure why, and that's what led me to deconstruct my entire page design, but I couldn't do it. It was 100% of itself, not of the parent element containing it. So... it wasn't doing any good. I just couldn't figure out where the top-level element was.
Table layout doesn't work so well for me. I think I'm a good candidate for switching to CSS... if I can ever master it! Mostly, I need to grow a brain.
:) *does the Wizard of Oz scarecrow dance*