CSS Help, Please
kwall@kurtwerks.com
kwall
Mon May 17 11:42:58 PDT 2004
Feigning erudition, ronnie gauthier wrote:
% I just looked at this again and do you have the <style> tags in the external
% file??
Yes. If I put the <style> tags into the HTML file, I don't get this
behavior, but I don't want to have to do that -- it ruins one of the
nicest features of a stylesheet, having it in an external file shared
by multiple HTML documents.
% >On Tue, 7 Jan 2003 22:41:15 -0500 - kwall at kurtwerks.com wrote the following
% >Re: CSS Help, Please
% >
% >>So, I was playing with CSS on a web page. If I use the following
% >>style.css file, I don't get the body settings I want (as viewed
% >>in Mozilla 1.2.1):
% >>
% >><style type="text/css">
% >> body {
% >> color: black;
% >> background-image:url(small-grid.gif);
% >> margin-left: 10%;
% >> margin-right: 10%;
% >> }
% >></style>
% >>
% >>But, if I use the following, the body settings *do* work (again, as
% >>viewed in Mozilla 1.2.1):
% >>
% >><style type="text/css">
% >> body { ; }
% >> body {
% >> color: black;
% >> background-image:url(small-grid.gif);
% >> margin-left: 10%;
% >> margin-right: 10%;
% >> }
% >></style>
% >>
% >>The browser appears to ignore the first body statement, so using
% >>what amounts to an empty or null body statement works around the bug.
% >>Is this a Mozilla misfeature or something stupendously simple that I
% >>am overlooking?
% >>
% >>Thanks,
% >>
% >>Kurt
% >>--
% >>It is Mr. Mellon's credo that $200,000,000 can do no wrong. Our
% >>offense consists in doubting it.
% >> -- Justice Robert H. Jackson
% >>_______________________________________________
% >>Linux-users mailing list
% >>Linux-users at linux-sxs.org
% >>Unsubscribe/Suspend/Etc ->
% >>http://www.linux-sxs.org/mailman/listinfo/linux-users
% >_______________________________________________
% >Linux-users mailing list
% >Linux-users at linux-sxs.org
% >Unsubscribe/Suspend/Etc ->
% >http://www.linux-sxs.org/mailman/listinfo/linux-users
% _______________________________________________
% Linux-users mailing list
% Linux-users at linux-sxs.org
% Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
--
"Yow! Am I having fun yet?"
-- Zippy the Pinhead
More information about the Linux-users
mailing list