Re: site coding review!?



catalyst wrote:
"catalyst" <catalyst@xxxxxx> wrote in message
news:g24fd4$dup$1@xxxxxxxxxxxxxxxxxx
There some errors in coding which i'm trying to repair to improve, but am
not managing to well, so asking for a quick look...thanks!

www.trnje.hr

You have an unhealthy mix of HTML presentational attributes, inline
styles and CSS. This will make maintenance a huge pain in the neck. I
suggest you

- get rid of all <font> elements, use external CSS instead
- get rid of all inline styles, use external CSS instead
- get rid of all HTML presentational attributes like align, except for
height and width attributes on <img> elements, use external CSS instead

It will make life sooooooooo much easier in the future.

Also get rid of all the excess JavaScript, on the navigation links in
particular. It does nothing except add bloat to the HTML. All the
onclick and mouseover actions can easily be done with CSS in a fraction
of the code.

Maybe you should find yourself a nice template that already has the
general layout you're looking for, and start with that. There are plenty
of free ones out there, some are over at
http://css-discuss.incutio.com/?page=CssLayouts

Sample navigation menus can be found at
http://css.maxdesign.com.au/listamatic/

You should also have a look at
http://allmyfaqs.net/faq.pl?AnySizeDesign

--
Berg
now killing all posts from google groups
.



Relevant Pages

  • Re: Menu is not overlapping content area and width of menu is not accomodating width of its content
    ... But this may well not be a CSS question at all, since your menu doesn't "drop down" at all without JS turned on. ... I'll bet you can remove the div and rule from the markup and CSS respectively. ... Keep a copy of the style.css file if you insist, but for your working file (and especially, for the one you're posting for others to analyze and help debug), get rid of all extraneous stuff. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Menu is not overlapping content area and width of menu is not accomodating width of its content
    ... I'm really tired, so I probably shouldn't be posting, ... Trying to use absolute positioning and z-index is often a sign of trying ... But this may well not be a CSS question at all, ... And get rid of all the commented-out stuff. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: a colored square
    ... validator: http://jigsaw.w3.org/css-validator/ ... selected colors as small colored squares. ... I will get rid of the tble and use your CSS suggestions. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: OT: New article: Lets block cracker using denyhosts
    ... On Thursday 30 March 2006 10:13 pm, Stuart M Smith wrote: ... Firefox under the "View" menu, which gets rid of the css that the site ...
    (Fedora)
  • Re: Center-Aligning elements
    ... the images and their text ... You'd have similar problems if you were using float and CSS was turned ... The Strict HTML requirement is rather formal as such, ... CSS 2.1 for inline boxes, and so it's unclear where browsers are ...
    (comp.infosystems.www.authoring.html)