Tom
Tom

Reputation: 8137

What are some alternatives to CSS to style your websites?

After asking this question, it appears that a lot of CSS hacks and tricks are needed to achieve something that simple. People have said that CSS is broken.

So I wonder now, if not CSS, what are some alternatives to creating advanced html structure and markup/layout?

Are we left with tables and framesets? Or is there something else?

Upvotes: 0

Views: 2099

Answers (9)

Paul Sweatte
Paul Sweatte

Reputation: 24637

Here are some alternatives:

  • image maps
  • pre formatted layouts
  • table formatted layouts
  • XSL-FO=>HTML formatted layouts
  • object formatted layouts

References

Upvotes: 0

Sampson
Sampson

Reputation: 268512

Generally speaking, CSS is not the problem. Rather it's those authoring the CSS that need help. Write standards-compliant code, use a standards doctype, don't depend on experimental features, and carefully implement progressive-enhancement.

Following these simple rules will ensure that your projects will play well with various browsers, and behave in a manageable way. Most issues that frustrate developers are the direct result of those developers not doing one or more of the previous suggestions and not the result of language-designers or browser-vendors failing at their jobs.

Programming and Web Development are not trivial careers; they require constant studying and self-improvement. Unfortunately we developers are often times rushed and aren't able to give our profession the care and nurture that it needs, and this creates more problems than we can comfortably handle.

Upvotes: 10

Rob
Rob

Reputation: 15168

Hate to burst anyone's bubble but all of HTML is styled with CSS whether you use CSS directly yourself or not. You can view the internal CSS styling of many of the browsers including how it style tables and frames. In Firefox, look in the res folder for html.css

Upvotes: 1

Davey
Davey

Reputation: 1324

If not studied correctly CSS can appear broken. It is simple to learn but a little tricky to master. Maybe run through some more tutorials and get a better grasp on the box model and such before writing it off.

That being said CSS still angers me on an almost daily basis but it is still the best.

Upvotes: 0

stephenhay
stephenhay

Reputation: 2874

CSS is not "broken" simply because it doesn't work the way you think it should. Looking at your previous question, your premise is that what you did was correct, and that margin-bottom wasn't doing what it should. This is a faulty premise. Respectfully, your understanding of the CSS box model is flawed.

I answered your previous question there.

Upvotes: 2

Carl Smotricz
Carl Smotricz

Reputation: 67820

Many interesting layouts are possible with CSS. As the share of IE6 in the world is declining, the compatibility situation is slowly improving, too. You can also make a lot of browsers behave better by putting proper headers on your HTML.

For some intended layout cases, the answer I get to questions like yours is often "change your design".

Some layouts can be achieved using tables to partition vertical and horizontal space. I always get flamed by the CSS purist zealots when I suggest this, but they usually don't have any better alternatives to offer.

That said, it's a good idea to use tables as little as possible, as this use doesn't correlate well with their intended meaning and purpose. Consider tables an emergency hack for those cases where CSS solutions would be a lot more hackish.

Upvotes: 1

rossipedia
rossipedia

Reputation: 59467

I would say the recommended way is to stick it out with HTML (possibly HTML 5 markup) and wait for CSS to get fixed with CSS3. I wouldn't suggest going back to tables and/frames.

If you need more layout control, consider doing your website in another technology, such as Silverlight or Flash

Upvotes: 3

ShZ
ShZ

Reputation: 6616

CSS is broken, but the best way is still CSS.

While CSS itself may have flaws and missing features and be generally crappy, and while it may not work the same in every browser, it's still the best tool for the job. Its still an extremely flexible tool, albeit a slightly broken one.

Upvotes: 12

user151323
user151323

Reputation:

If by "advanced" you mean very complex like desktop application UIs, then yes, sooner or later you will have to use tables.

It is considered that using tables for design is wrong, but since we figured out CSS is "broken", then why would it matter anyway? You're apparently out of options.

It is a pity that boys responsible for development of HTML and CSS have made mess of the things. Web development could have been in advance by leaps now. We can only hope it will get streamlined in the next few years with HTML5, CSS3 and browser improvements.

Upvotes: 2

Related Questions