473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

CSS Template?

I searched from the internet, and found so many existing CSS templates,
such as 2-col or 3-col layout for web designers to re-use.

However, I found many of them are not completely standard complaint
(i.e. use of IE hack) or browser complaint (follow the web standard,
but didn't work very well with IE).

So I want to ask, are there any better templates which is standatds
complaints, but also work with most popular browsers?

Thanks.

Nov 12 '06 #1
6 1536
howa wrote:
I searched from the internet, and found so many existing CSS templates,
such as 2-col or 3-col layout for web designers to re-use.

However, I found many of them are not completely standard complaint
(i.e. use of IE hack) or browser complaint (follow the web standard,
but didn't work very well with IE).

So I want to ask, are there any better templates which is standatds
complaints, but also work with most popular browsers?

Thanks.
Unfortunately, IMHO, the issue at hand is not a three column example which
is both standards compliant and works with most popular browsers. The real
issue is that browser manufacturers seems to ignore the standards and
follow their own rules. The worst offender also happens to be the browser
that is the most popular, but they are not the only offender.

All is not lost however, like any other industry, you can incorporate the
material flaws, in this case browser incompatibilities, into the design.
For example, some browsers have an issue when you try to position one
division within a pixel of another division. It looks perfect on one, but
there is a glitch on the second. So, space them 3-4 pixels apart, and in
most browsers they will be 3-4 pixels apart, in some it might be 2-3 or
4-5. Same overall effect, a small gap between the sections - on every
browser.

Carolyn
--
Carolyn Marenger

Nov 12 '06 #2
However, I found many of them are not completely standard complaint
(i.e. use of IE hack) or browser complaint (follow the web standard,
but didn't work very well with IE).
I suggest you to focus on Firefox's standard compilance... unless you
are recruited by IE believers. :)

--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.18.2
^ ^ 20:44:01 up 7 days 21:38 0 users load average: 1.00 1.00 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk
Nov 12 '06 #3
howa wrote:
>
So I want to ask, are there any better templates which is standatds
complaints, but also work with most popular browsers?
Your expectations may be a bit too high. We all know that IE6 sucks, as
far as handling CSS goes. Unless you have a very simple layout (and even
that's debatable if you use any floats), some kind of work around for IE
flaws is inevitable. You just have to decide which work around to use.

I am not in favor of conditional comments, because it pollutes the HTML
on every page rather than in 1 CSS file. I think work arounds are more
manageable if they are contained in one place. Good comments are helpful.

I am also not in favor of hacks that are an abuse of the standards, like
the underscore and Tantek hacks, but I think using properties that are
proprietary to a specific browser is not so harmful - zoom, filter, and
moz-properties for example.

Pick your poison, just make an informed decision and be prepared to deal
with any consequences.

--
Berg
Nov 12 '06 #4

Bergamot wrote:
howa wrote:

So I want to ask, are there any better templates which is standatds
complaints, but also work with most popular browsers?

Your expectations may be a bit too high. We all know that IE6 sucks, as
far as handling CSS goes. Unless you have a very simple layout (and even
that's debatable if you use any floats), some kind of work around for IE
flaws is inevitable. You just have to decide which work around to use.

I am not in favor of conditional comments, because it pollutes the HTML
on every page rather than in 1 CSS file. I think work arounds are more
manageable if they are contained in one place. Good comments are helpful.

I am also not in favor of hacks that are an abuse of the standards, like
the underscore and Tantek hacks, but I think using properties that are
proprietary to a specific browser is not so harmful - zoom, filter, and
moz-properties for example.

Pick your poison, just make an informed decision and be prepared to deal
with any consequences.

--
Berg
so even not a perfect one,
are there any recommended templates?

Nov 12 '06 #5
Bergamot schrieb:
I am also not in favor of hacks that are an abuse of the standards, like
the underscore and Tantek hacks,
The Tantek hack just exploits a parsing bug in Win IE, but is valid CSS.
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
Nov 12 '06 #6
In article
<11**********************@k70g2000cwa.googlegroups .com>,
"howa" <ho******@gmail.comwrote:
I searched from the internet, and found so many existing CSS templates,
such as 2-col or 3-col layout for web designers to re-use.

However, I found many of them are not completely standard complaint
(i.e. use of IE hack) or browser complaint (follow the web standard,
but didn't work very well with IE).

So I want to ask, are there any better templates which is standatds
complaints, but also work with most popular browsers?
There are "more or less" standards compliant browsers. The more
they are, the less hacks and tricks and special provisions in the
html/css, the less they are compliant, the more the hacks and
tricks and special provisions. Really good and useful templates
are going to reflect this, it is unreasonable to expect otherwise.

--
dorayme
Nov 13 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Oplec | last post by:
Hi, I'm learning C++ as a hobby using The C++ Programming Language : Special Edition by Bjarne Stroustrup. I'm working on chpater 13 exercises that deal with templates. Exercise 13.9 asks for me...
31
by: nikola | last post by:
Hi all, I was working with a simple function template to find the min of two values. But since I would like the two values to be different (type) I dont know what kind of value (type) it will...
5
by: Gianni Mariani | last post by:
The spirit of this arguably pointless exercise, is that the numeric_limits<T> class could be replaced with a totally generic template of compile-time, template computed constants. The problem is...
2
by: Rudy Ray Moore | last post by:
Whenever I get any error with Vc++7.1/.net/2003, it is followed by huge ammounts of "template assistance" error messaging referencing template code (MTL) that has nothing to do with the error. ...
2
by: Alfonso Morra | last post by:
I have a class declared as ff: class __declspec(dllexport) A { public: A() ; A(const A&) A& operator=(const A&) ; ~A() ; void doThis(void) ;
19
by: aaragon | last post by:
Hi everyone. A very simple question. I would like to know what is better in terms of performance. I want to use a simple function to obtain the minimum of two values. One way could be using a...
3
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and...
45
by: charles.lobo | last post by:
Hi, I have recently begun using templates in C++ and have found it to be quite useful. However, hearing stories of code bloat and assorted problems I decided to write a couple of small programs...
9
by: Leo jay | last post by:
i'd like to implement a class template to convert binary numbers to decimal at compile time. and my test cases are: BOOST_STATIC_ASSERT((bin<1111,1111,1111,1111>::value == 65535));...
2
by: Gary Nastrasio | last post by:
I'm currently reading Andrei Alexandrescu's book "Modern C++ Design" and I'm a bit confused by one bit of template syntax in chapter 1. Here is a code example: template <class CreationPolicy>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.