473,404 Members | 2,137 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,404 software developers and data experts.

CSS help--what would a stylesheet for this page look like?

Okay, so I was working primarily in dreamweaver and the site looks
very good in both IE (our customers primarily use this) and Firefox
(my new 'thing'), but I ran it through the validator and noticed some
startling things-- I have eight errors keeping me from being valid
html 4.01 transitional. Please help!
What would a style sheet look like for this page, as it is one of
about 30. I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.
Help would be totally appreciated... The page is here:
http://www.kennedyscountry.com/testing/salespolicy.htm
Jul 23 '05 #1
9 1918

"Nicole" <st*********@yahoo.com> wrote in message
news:4d**************************@posting.google.c om...
Okay, so I was working primarily in dreamweaver and the site looks
very good in both IE (our customers primarily use this) and Firefox
(my new 'thing'), but I ran it through the validator and noticed some
startling things-- I have eight errors keeping me from being valid
html 4.01 transitional. Please help!
Did you look at the error messages? Did you cross-reference them to your
source code? They pretty much tell you exactly what the problems are. If
there's something specific you don't understand about them, ask, but don't
just throw up your hands and say "I have errors! Help!" without any details.
What would a style sheet look like for this page, as it is one of
about 30. I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.
A separate issue, more appropriately discussed in c.i.w.a.stylesheets.
Help would be totally appreciated... The page is here:
http://www.kennedyscountry.com/testing/salespolicy.htm


Jul 23 '05 #2
Quoth the raven Nicole:
Help would be totally appreciated... The page is here:
http://www.kennedyscountry.com/testing/salespolicy.htm


Why that large empty space at the top of the page?

Oh. <img src="file:///E|/Kennedy/siteimages/kennedyslogo.jpg"

Sorry, we can't see images on your computer... :-(

--
-bts
-This space intentionally left blank.
Jul 23 '05 #3
In article <4d**************************@posting.google.com >,
st*********@yahoo.com says...
Okay, so I was working primarily in dreamweaver and the site looks
very good in both IE (our customers primarily use this) and Firefox
(my new 'thing'), but I ran it through the validator and noticed some
startling things-- I have eight errors keeping me from being valid
html 4.01 transitional. Please help! http://www.kennedyscountry.com/testing/salespolicy.htm
Well. I see page with tiny fonts taking up 1/3 of my browser window, but
causing a horizontal scrollbar on other (and still not taking up all
browser window).
What would a style sheet look like for this page, as it is one of
about 30.
Pretty hard, as you really should make good HTML first. And that would be
on topic in this newsgroup too. So fix your HTML.

If you intend to keep idiotic use of images (like one on
file:///E|/Kennedy/siteimages/kennedyslogo.jpg), CSS:
body {text-align:center;font-family:Arial}
h1 {color:#<light brown>;border-top:5px black solid;padding-
top:1em;margin-top:0}
#menu {float:left;}
..footer {background:black;color:white;}
..ads {float:right}

Not sure if there is all that is needed, but I think it is. Of course,
that is the way I think HTML should be fixed. And of course, that is just
for this one page.

OK, HTML:

<img><img class="ads">
<img id="menu"><img class="ads">
<h1>SP</h1>
<p><a>Down...</a>
<p>This...
<div><img></div>
<p><a>C...</a>
<div><img><img></div>
<div class="footer">...</div>

Neither tested, but should get you started. You really should make menu
someway different:

div#menu div {background: no-repeat top.jpg; }
div#menu {background: no-repeat bottom bottom.jpg}
ul {border:solid black; border-width: 1px 2px;list-style:none;}
li {background:white;border: #ccc 1px solid;font-weight:bold;}

<div id="menu"><div>
<ul><li><a>fgdf</a>
</ul></div></div>

Again, just guidelines, needs some more thinking
I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.
There is bigger problems on that page than it not being made using CSS
and valid code.
Help would be totally appreciated... The page is here:

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #4
Thank you all for the 'help.' Basically I was having issues with some
of the validation errors I was getting (the trs mainly)... But I guess
I'll just have to work around that and RETHINK everything for myself.
Which I'd rather do.
Well. I see page with tiny fonts taking up 1/3 of my browser window, but
causing a horizontal scrollbar on other (and still not taking up all
browser window).
That's helpful... I appreciate you telling me this, but I wonder what
your screen resolution is, just so I can compare it with the info we
have about our customers settings.
What would a style sheet look like for this page, as it is one of
about 30.
Pretty hard, as you really should make good HTML first. And that would be
on topic in this newsgroup too. So fix your HTML.


As I recall, I was asking about my validation errors in the initial
part of this.... But maybe I wasn't crystal clear.
If you intend to keep idiotic use of images (like one on
file:///E|/Kennedy/siteimages/kennedyslogo.jpg), CSS:
Again, this is helpful. I apologize for my 'idiotic' use of that. It
slipped through, but be assured it's been fixed. I appreciate everyone
pointing this out to me, as I want to make sure the page is as perfect
as can be before I roll it out.


body {text-align:center;font-family:Arial}
h1 {color:#<light brown>;border-top:5px black solid;padding-
top:1em;margin-top:0}
#menu {float:left;}
.footer {background:black;color:white;}
.ads {float:right}

Not sure if there is all that is needed, but I think it is. Of course,
that is the way I think HTML should be fixed. And of course, that is just
for this one page.

OK, HTML:

<img><img class="ads">
<img id="menu"><img class="ads">
<h1>SP</h1>
<p><a>Down...</a>
<p>This...
<div><img></div>
<p><a>C...</a>
<div><img><img></div>
<div class="footer">...</div>

Neither tested, but should get you started. You really should make menu
someway different:
'someway different', or 'somewhat different'???
div#menu div {background: no-repeat top.jpg; }
div#menu {background: no-repeat bottom bottom.jpg}
ul {border:solid black; border-width: 1px 2px;list-style:none;}
li {background:white;border: #ccc 1px solid;font-weight:bold;}

<div id="menu"><div>
<ul><li><a>fgdf</a>
</ul></div></div>

Again, just guidelines, needs some more thinking
I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.
There is bigger problems on that page than it not being made using CSS
and valid code.


Please explain, maybe I'll being too 'idiotic.' I designed the page
and everything looked okay, until I ran the validator. At least I did
check that and then realized changes would have to be made. You know,
I am probably taking what you guys meant to heart, which I probably
shouldn't.
Thank you all for the help though. It's my own fault for not coding a
little better.
Help would be totally appreciated... The page is here:

Jul 23 '05 #5
Re: http://www.kennedyscountry.com/testing/salespolicy.htm
Lauri Raittila <la***@raittila.cjb.net> wrote:
Well. I see page with tiny fonts taking up 1/3 of my browser window, but
causing a horizontal scrollbar on other (and still not taking up all
browser window).

Nicole <st*********@yahoo.com> wrote: That's helpful... I appreciate you telling me this, but I wonder what
your screen resolution is, just so I can compare it with the info we
have about our customers settings.


The tiny fonts problem is caused by your use of px for font sizes in your
style sheet. That is inappropriate on the WWW. See
http://css.nu/faq/ciwas-aFAQ.html#QA02

The horizontal scrollbar problem is caused by the fixed-width design that
assumes the browser window is going to be about 800 pixels wide. Any wider,
and you get wasted space on the right. Any narrower, and you get horizontal
scrollbars. See http://www.htmlhelp.com/faq/html/all.html#screen-size and
http://www.xs4all.nl/~sbpoley/webmat...lexdesign.html
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"I've cut this board three times, and it's still too short!"
Jul 23 '05 #6
In article <4d**************************@posting.google.com >,
st*********@yahoo.com says...
Thank you all for the 'help.' Basically I was having issues with some
of the validation errors I was getting (the trs mainly)... But I guess
I'll just have to work around that and RETHINK everything for myself.
Which I'd rather do.
Well. I see page with tiny fonts taking up 1/3 of my browser window, but
causing a horizontal scrollbar on other (and still not taking up all
browser window).
That's helpful... I appreciate you telling me this, but I wonder what
your screen resolution is, just so I can compare it with the info we
have about our customers settings.


Screen1: 1600*1200 Window: 800*1100
Screen2: 1024*768 Window: 760*760
As I recall, I was asking about my validation errors in the initial
part of this.... But maybe I wasn't crystal clear.
You said you wanted to validate your HTML. Easiest way to get your HTML
validating is to make again from scratch. Maybe I shoudl have said that
more clearly.
If you intend to keep idiotic use of images (like one on
file:///E|/Kennedy/siteimages/kennedyslogo.jpg), CSS:


Again, this is helpful.


Of course, that was only most obvious problem.
[snip HTML and CSS]
Neither tested, but should get you started. You really should make menu
someway different:


'someway different', or 'somewhat different'???


Cant say the difference between them (I'm not native on English). Result
would look exactly same on your browser, but it would look bit bigger on
mine.
I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.

Stylesheets are funny. They seem so complicated at first, and when you
know them, they seem so simple...
There is bigger problems on that page than it not being made using CSS
and valid code.


Please explain, maybe I'll being too 'idiotic.' I designed the page
and everything looked okay,


- horizontal scrollbar was unnecessary, vertical is much better option.
- menu was too tiny to be used.
- too much content in images.
until I ran the validator. At least I did
check that and then realized changes would have to be made.
So you are better than about 100% other www-page makers...
You know,
I am probably taking what you guys meant to heart, which I probably
shouldn't.


Correct. We don't bother being super nice anymore, after answered to
about 100 similar posts in past.

Anyway, I gave you the code, you only need to fill in stuff I left out.
Try it, and if it doesn't work, ask again.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 23 '05 #7
Nicole wrote:
Thank you all for the 'help.'
Careful there. The quotes around "help" might give folks the impression
that you're being snippy or sarcastic. Written medium doesn't provide
for nuance like intonation or facial expression.
I designed the page and everything looked okay, until I ran the
validator. At least I did check that and then realized changes would
have to be made.
The validator is a useful tool in that way. It automates the process of
finding syntax errors. But it is only a tool.

http://www.cs.tut.fi/~jkorpela/html/validation.html

The goal is to create a useable www page. Creating valid html is one
step to reaching that goal.
You know, I am probably taking what you guys meant to heart, which I
probably shouldn't.
If you mean that you're taking the harsh comments personally, then no,
you should not take it that way. The ciwa* newsgroups are not "warm and
fuzzy", especially when answering questions that have been asked before.
In order to provide you -- and scores of others -- with answers, and
still have time for discussion, we're often brutally court and to the point.

You may notice that discussions among regulars are more cordial. That's
not so much because we're regulars, but because we're discussing new
topics, which is more rewarding, and because we follow certain rules
that make the discussions more fruitful.

Have you read "How to ask questions the smart way"?

http://www.catb.org/~esr/faqs/smart-questions.html

It explains how technical forums tend to operate.
Thank you all for the help though. It's my own fault for not coding a
little better.


If I may respond for the group, you're welcome for the help. And don't
fret about not coding correctly the first time. We've all been there. In
fact, I'm sure that all the regulars use the validator, and use it to
fix their own mistakes.

Keep plugging away, and do stick around ciwa*. They are the most
valuable resources I use, in part for what we discuss here, and in part
for the hundreds of useful web page resources that get cited.

--
Brian (remove "invalid" to email me)
http://www.tsmchughs.com/
Jul 23 '05 #8
Brian wrote:
we're often brutally court and to the point.


....brutally curt...

(It appears I was trying to sneak some French in there or something.)

--
Brian (remove "invalid" to email me)
http://www.tsmchughs.com/
Jul 23 '05 #9
In article <4d**************************@posting.google.com >,
st*********@yahoo.com says...
Okay, so I was working primarily in dreamweaver and the site looks
very good in both IE (our customers primarily use this) and Firefox
(my new 'thing'), but I ran it through the validator and noticed some
startling things-- I have eight errors keeping me from being valid
html 4.01 transitional. Please help!
What would a style sheet look like for this page, as it is one of
about 30. I want this site to be fully compliant, but I've never been
terribly great at designing a style sheet.
Help would be totally appreciated... The page is here:
http://www.kennedyscountry.com/testing/salespolicy.htm


Please take the lessons here:
http://www.w3schools.com

They have lessons on HTML, XHTML, XML, CSS, etc...
Jul 23 '05 #10

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

Similar topics

9
by: nntp | last post by:
I am trying to parse http://www.ebay.com without success. I view the source, and I see a lot of ?/td>. This page is unsavable. It displays perfectly in IE, but once the source is saved/viewed,...
2
by: tshad | last post by:
I have a screen that is displaying an asp:textbox that has about 20 lines of text with line feeds that I read out of my Database. This displays fine as a multiline textbox. It doesn't as a...
1
by: p19010101 | last post by:
Just wondering what is the technology behind applications like MS Money, Quicken, Outlook (Outlook Today). They all have a web page look dashboard, can similar things be done in VB.net? My guess...
0
by: jimryder | last post by:
I have an HTML button next to a Webcontrol Command button on my aspx page. They don't look the same! I know how to style, I just don't know what style to use to make the HTML button look like...
1
by: J. Cairn | last post by:
I am developing an ASP page for clients. I will host the page on my server, but it must appear on the clients' websites. That means that the user should not be redirected to my site, but instead...
9
by: mark4asp | last post by:
Why is this page invalid? Pasted into http://validator.w3.org/ I'm told that the page is invalid. Why? It flags problems with the <bodyand </htmltags but I can't see why. Is the W3C validator...
7
by: Steve Swift | last post by:
How close can you get to making a submit button look like a link? Answers to the inevitable questions: 1. Because I don't want my email address (which would have to be part of the URL in a...
3
by: ismailc | last post by:
Hi, I have One Radio button which has two cricles, I would like to convert this to look like two buttons. Is this possible, Please help
11
Dormilich
by: Dormilich | last post by:
Lately I have seen so much awful HTML, that I like to show what a HTML document should look like, regarding the requirements from the W3C. the absolute minimum is defined as: or expressed in...
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: 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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.