Trip is in denial? CSS vs HTML

Why do you doublepost? I am always trying to say here that this can polluting the forum for you and the readers.
Regardless from this, more important is that I had a website in the past with a keyboard with a computerdictionary if you clicked the keys. It was easier to make it working nice in dreamweaver.
 
Trip, I totally understand your concerns. I wouldn't go near the code up until 4 months ago. Now, I am seriously considering doing everything in BBEdit.

There is no problem with using DW/GL. I still use DWMX. But, the more sophisticated your CSS gets (and the things you can do in CSS are fantastic), the worse it looks in DW/GL's View mode.

Not sure about GoLive, but DWMX and MX2004 have XHTML code built in. Just make sure in preferences that New Document is set to XHTML Compliance, and that Validator is set to XHTML (Transitional). I'm sure GoLive has similar prefs.

As for the file extension, you don't have to change anything, it's still .html.

As has been pointed out, XHTML, at it's simplest, makes all tags lowercase, and makes sure all tags are closed. For example:

<p>Text</p>
<img src="image.gif" />

... instead of:

<P>Text
<IMG SRC="image.gif">
 
If you want to test any of your pages for XHTML Transitional compliance, enter your URL into this page:

http://validator.w3.org:8001/

You'll have to make sure you have the right DOCTYPE though. It will tell you what's wrong with the code. Neat!
 
I can't afford BBEdit (WAY too expensive!) so I got this neat little editor called WebDesign. I'll look into editing with XHTML in GoLive right now.

In reality: I really don't want to do all the coding by hand. Is that a bad thing to feel? :(

[EDIT (for the sake of tree): What am I suppost to do?!?! Tables don't work in XHTML! So how do I get my content to neatly go where I need it to?!]
 
you don't use xhtml as a file extension...
Like I said - DWMX2004 does all of this. Especially for those who don't want to work in straight text.

BTW - I have and sometimes do code in PICO (Mac 'n Linux) or Notepad (Windows) when I don't have access to DW, and in DW I always have code view open and use it all the time. :p
Is HomeSite still made as a standalone site? Or did it disappear as it was merged into DreamWeaver?

So maybe DW has more code or does it a little different that others here would prefer - but it works! It should please everyone involved when used with the Code View open (or exclusively in code view).

Donno about GoLive Trip, I didn't like it as a web design tool so I haven't spent much time in it. But I do belive it has a code view too that you can clean up within.
 
Trip:
Hey! that looks like a grate program! Reminds me of DW in Code View! :D
Downloading it now! Since I can't afford DWMX2004 atm, this looks like a great alternative until I can!
Thanks! :)
 
np sogni.
I CAN use tables from GoLive in my XHTML sites, but when I try to validate the site it gives me tons of errors because of the table.

C'mon guys, are tables really THAT bad? :)
 
Yep, as dlloyd states, tables can happily exist within XHTML, there a just a few fundamental things you need to tighten up/look out for...

There are many depreciated attributes within the <table>, <tr>, and <td> tags, that are depreciated within XHTML. If you've validated your page, then the errors shown are normally quite thorough, so you can pick out where the problem is.

I'll be launching our new site (hopefully tonight!). It's validated as XHTML Transitional but I had to use tables (pretty complicated element that CSS just cannot cover, but saying this, tables wouldn't have either, a healthy mix!)

Show us some of the validation errors if you like?

By the way dlloyd, thank for the skti link, was using TacoEdit, but downloaded this and it's great.
 
DANGIT!!! You are driving me nuts! LOL :D

I decided to see validate a website I'm doing for a client - and mind you I had already broken it up (PHP require includes - a template if you will). And it's nitpiking my code! Damnit! LOL :D

Looks like I'll be redoing it to XHTML specs.

BTW, if one is not to use tables, what is the alternative? Layers? I haven't done those manually at all - and the way DW does it makes my skin crawl (reminds me of Front Page source code). :p
 
I setup GoLive tables (are they called something different?) and I get errors like "xgrid cannot be identified" or something like that.
 
You can use tables Sogni. In XHTML, they are deemed as acceptable. However, in XHTML proper (Strict), they are only allowed for their original purpose, tabled data.

The simple rule is, use tables if needs be, but just do not use any table tag attributes in the code. Style them with CSS.

Thus:

Code:
<table bgcolor="#999999" border="0" width="300px" height="300px">

would be something like:

Code:
<table id="aTable">

with the corresponding CSS in an external CSS file:

Code:
table#aTable {
          background-color: #999;
          width: 300px;
          height: 300px;
          border: none;
}

Alternatively it could be
Code:
table.aTable
which would make it a class (you'd have to 'class' the table HTML rather than 'id' it as I have) and you can use it on any table you like in your pages. Or, if this is the only style your tables will have, just make it the universal table style in CSS with:

Code:
table    {
SAME CSS CODE AS ABOVE
Code:
}
 
*bangs head against brick wall*
Boy, I'm getting a headache! heh :p

I was going to ask why this
Code:
Line 10, column 38:  there is no attribute "bgcolor"  (explain...). 
  <table width="700" border="1" bgcolor="#FFFFFF">

Does not validate - but I guess you answered that question...
Man, so EVERYTHING needs to be defined in CSS??? (formatting I mean) Wow! What a pain in the but! :p

What about alignment like Center Alignment?

Code:
Line 36, column 35:  there is no attribute "align"  (explain...). 
            <td width="84%"><p align="center"><img src="_images/eliminateexpensive
                                     ^
 
Err wrong alignment code... hmmm now I can't find it in that page. Anway it does not like
Code:
<div align="center"> something here </div>
 
Originally posted by Trip
I setup GoLive tables (are they called something different?) and I get errors like "xgrid cannot be identified" or something like that.

I don't think that's normal table code Trip, I haven't seen that reference (xgrid) myself.
 
You can dlloyd - but I don't think that text-align: center; is in the specifications, but it sure works... left and right work too.
And sogni - yes - you need to do *everything* that has to do with layout in your css. the html is supposed to be very minimal, just what you want to be on the screen - not how it should look on the screen.
 
Originally posted by dlloyd
You CAN'T center align with CSS :mad: I really hate that

Oh no, PLEASE don't tell me that!

BTW, anyone recomend a good (possibly even free or very low cost) CSS editor with a WYSIWYG view? I hate making CSS documents "in the dark".
 
Back
Top