473,386 Members | 1,754 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,386 software developers and data experts.

Using CSS in page layout and design

VK
Chris Tomlinson wrote:
I wonder, do you know of any converters either available now or in
development, that will take current HTML code, and convert (find & replace
basically) the appropriate tags, for CSS placed in the header?


Guys, it is a honnor to see c.l.j. as a place to discuss burning
questions of any web-related kinds. Still all this thread would be much
better suited for say <comp.infosystems.www.authoring.stylesheets>
Not a Usenet cop, just curious trespasser.

May 28 '06 #1
1 1582
VK <sc**********@yahoo.com> scripsit:
Chris Tomlinson wrote:
I wonder, do you know of any converters either available now or in
development, that will take current HTML code, and convert (find &
replace basically) the appropriate tags, for CSS placed in the
header?

There can be no such converter, or at least you would need to define quite a
lot of specific conversion rules. Presentational HTML features have largely
been defined somewhat vaguely and generally with no specific mapping to CSS.
To take the classical example, there is no defined relationship between
<font size="2"> and the values of font-size in CSS, though in practice, you
could decide to try to deal with the issue the same way as most browsers.
More strikingly, if a page uses <blockquote>, how could the conversion
routine know whether the markup should be retained (because it is logical
markup) or replaced by <div> markup and some CSS rule with margin-left? If
you try to replace <font color="..."> by something, you can rather easily
enter suitable CSS code for the exact replacement, but this means violating
the basic CSS design principle of always setting background when you set
color, and vice versa. Selecting a background is probably not automatable
before we make computers think.

As a rule, HTML markup that contains lots of presentational markup is
usually not worth converting to anything. It should be rewritten. Exceptions
include data generated by automated conversion routines from, say, Word or
PDF format. But even then, what really needs to be done is to get rid of all
or most of the presentational stuff, then start thinking about styling it,
from a clean desk.
Guys, it is a honnor to see c.l.j. as a place to discuss burning
questions of any web-related kinds. Still all this thread would be
much better suited for say
<comp.infosystems.www.authoring.stylesheets>


Sounds plausible, from the quoted text, but I'm not going to read the
thread; I just comment on the question that was asked (and that looked
rather self-contained and clear, though unfortunately with an unclear
answer).

P.S. When adding a group to the Newsgroups line and suggesting verbally that
discussion continue there, you should also set the Followup-To header
correspondingly.

May 28 '06 #2

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

Similar topics

4
by: Dariusz | last post by:
I have constructed a PHP generated HTML layout, which on POSTing the menu option the user selects, calls the same PHP code / page which generates the HTML page and GET's the correct SHTML page into...
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
9
by: Jacquie | last post by:
hello- I am hoping someone can help me solve this mystery. My pages always say Done with error on page on the bottom. They appear fine on my computer but other people can't all see it on their...
28
by: Anthony Williams | last post by:
Good morning, I'm currently designing a site, using CSS, and wish to create a variable width two-column layout, with header and footer, and one fixed-width column on the left. Previously, I...
3
by: nevets2001uk | last post by:
Hi. I've just started my second ASP.NET (VB) app and I'm using codebehind this time. I'm not using visual studio but am instead coding it all in notepad (HTML, ASP.NET and CSS) I'm trying to...
4
by: Paul | last post by:
Hi still testing the idea of using html files for forms and then integrating this into a net app. I tried a small form with a button but noticed all I could do with the button is to right click and...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
5
by: Stephen Poley | last post by:
There are plenty of people around these groups who promote the idea of flexible page design. However, while employing relative units and not fixing column-widths is a big improvement on...
3
by: Carl Gilbert | last post by:
Hi I am looking to convert a site from HTML to ASP.NET making use of CSS. I have tried various combinations but I can not seem to get the correct combination of div and CSS tag configurations....
0
by: waggledance | last post by:
I was wondering if anyone here might be able to offer me some advice for someone who can only use Macromedia Dreamweaver MX. I am (clearly!) a web design novice so apologies in advance if this is a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.