1st sample

B

Beauregard T. Shagnasty

Ganesh said:
Is everything right about this sample..

I need to make it look great... the text .. the over all feel..

http://www.seashellwebs.com/structure1/structure1.htm

Please suggest tips..

I can't read your content; it's too small (and dim).
http://k75s.home.att.net/fontsize.html

pt (points) are for printing. Use percents, 100 of them.
Text: justify is hard to read.
Color contrast is too light.
Why mixing serif and sand-serif fonts?

font: normal 0.7em/1.4em Tahoma, Verdana, Arial, Georgia, sans-serif;

"normal" is the default, you don't need to assign it. Skip Verdana (see
above page).
 
G

Ganesh

pt (points) are for printing. Use percents, 100 of them.
Text: justify is hard to read.
Color contrast is too light.
Why mixing serif and sand-serif fonts?

font: normal 0.7em/1.4em Tahoma, Verdana, Arial, Georgia, sans-serif;

"normal" is the default, you don't need to assign it. Skip Verdana (see
above page).
i've made the changes

am i going right now

ganesh
 
B

Beauregard T. Shagnasty

Ganesh said:
i've made the changes

am i going right now

Not quite.

..content p {
margin: 5px;
padding: 10px;
font: 80% Tahoma, Arial, Georgia, sans-serif;
^^^^^^^^^ ^^^^^^^^

Your font for content is still only 80% of everyone's preferred size.
Use 100%. If it looks too large on your monitor, set your own browser
default font size a bit smaller.

Georgia is a serif font. Use either:

font: 100% Tahoma, Arial, sans-serif;
or
font: 100% Georgia, Times, serif;

For:
..content h1 {
margin: 5px;
padding: 10px;
padding-bottom:1px;
text-align: left; <-- this is the default, not necessary
border-bottom: thin solid green;
font: 100% georgia; <-- add a comma and serif
<-- and assign a size around 175%
color: #993300; <-- no background color assigned
}

See: http://k75s.home.att.net/fontsize.html#samplecss

See the warnings here:
<http://jigsaw.w3.org/css-validator/...ww.seashellwebs.com/structure1/structure1.htm>

You do not have any errors in your HTML:
<http://validator.w3.org/check?verbose=1&uri=http://www.seashellwebs.com/structure1/structure1.htm>
but new documents should use a Strict doctype. Transitional is for
interim conversion of existing legacy pages.
http://www.w3.org/QA/2002/04/valid-dtd-list.html
 
G

Ganesh

.content p {
margin: 5px;
padding: 10px;
font: 80% Tahoma, Arial, Georgia, sans-serif;
^^^^^^^^^ ^^^^^^^^

Your font for content is still only 80% of everyone's preferred size.
Use 100%. If it looks too large on your monitor, set your own browser
default font size a bit smaller.

Georgia is a serif font. Use either:

font: 100% Tahoma, Arial, sans-serif;
or
font: 100% Georgia, Times, serif;

For:
.content h1 {
margin: 5px;
padding: 10px;
padding-bottom:1px;
text-align: left; <-- this is the default, not necessary
border-bottom: thin solid green;
font: 100% georgia; <-- add a comma and serif
<-- and assign a size around 175%
color: #993300; <-- no background color assigned

}See:http://k75s.home.att.net/fontsize.html#samplecss

See the warnings here:
<http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&u...>

You do not have any errors in your HTML:
<http://validator.w3.org/check?verbose=1&uri=http://www.seashell...>
but new documents should use a Strict doctype. Transitional is for
interim conversion of existing legacy pages.http://www.w3.org/QA/2002/04/valid-dtd-list.html

Well, how can i make the website look good as well then. :(
Do you know a sample website that looks great as well.
Is http://www.csszengarden.com/ according to you?
color: #993300; <-- no background color assigned
So is it said that one should not use colors either?

Ganesh
 
G

Ganesh

Beauregard said:
Not quite.

.content p {
margin: 5px;
padding: 10px;
font: 80% Tahoma, Arial, Georgia, sans-serif;
^^^^^^^^^ ^^^^^^^^

Your font for content is still only 80% of everyone's preferred size.
Use 100%. If it looks too large on your monitor, set your own browser
default font size a bit smaller.

Georgia is a serif font. Use either:

font: 100% Tahoma, Arial, sans-serif;
or
font: 100% Georgia, Times, serif;

For:
.content h1 {
margin: 5px;
padding: 10px;
padding-bottom:1px;
text-align: left; <-- this is the default, not necessary
border-bottom: thin solid green;
font: 100% georgia; <-- add a comma and serif
<-- and assign a size around 175%

I did that.
color: #993300; <-- no background color assigned
}

You mean it's not good to use colors?

Is csszengarden.com a good example to follow?

Ganesh
 
B

Beauregard T. Shagnasty

Ganesh said:
Well, how can i make the website look good as well then. :(
Do you know a sample website that looks great as well.

Design/beauty is in the eye of the beholder. The design should also fit
the purpose of the web site. It can be as flashy or as dull as you care
to make it.

This site of mine is neither flashy nor dull, and I think suits the
purpose of what is intended, without overpowering the visitor.
http://countryrode.com/

All layout and formatting is controlled by the CSS.

That site is an exercise to demonstrate what can be done with CSS. It is
not an example to follow for a regular site.
So is it said that one should not use colors either?

It is not said. Use all the color you want. I said you assigned no
*background* color with your font (foreground) color. You can get into
trouble by not assigning both, because a visitor may have assigned their
own background color, which may wipe out your foreground.

Consider I may have set my background color to black. You assign a
foreground font color of black. Now I can't see your text. You need to
assign a background of white or something near-white to go with your
black text. (This has nothing to do with CSS, by the way.)
 
G

Ganesh

Beauregard said:
Design/beauty is in the eye of the beholder. The design should also fit
the purpose of the web site. It can be as flashy or as dull as you care
to make it.

This site of mine is neither flashy nor dull, and I think suits the
purpose of what is intended, without overpowering the visitor.
http://countryrode.com/

All layout and formatting is controlled by the CSS.


That site is an exercise to demonstrate what can be done with CSS. It is
not an example to follow for a regular site.


It is not said. Use all the color you want. I said you assigned no
*background* color with your font (foreground) color. You can get into
trouble by not assigning both, because a visitor may have assigned their
own background color, which may wipe out your foreground.

But I assigned background color to white already

Ganesh
 
B

Beauregard T. Shagnasty

Ganesh said:
But I assigned background color to white already

You've changed it all around since I last looked. Now you have the body
background assigned as white (#fff). You have now not assigned the
foreground color; you are trusting that _my_default_ font color is
black. Use this:

body {
background-color : #ffffff;
color: #000000;
font-size : 100%;
}
 
G

Ganesh

Beauregard said:
You've changed it all around since I last looked. Now you have the body
background assigned as white (#fff). You have now not assigned the
foreground color; you are trusting that _my_default_ font color is
black. Use this:

body {
background-color : #ffffff;
color: #000000;
font-size : 100%;
}

Ok.. I've made that change. Yes, May be I changed the background after
you had a look at it.
 
D

dorayme

"Ganesh said:
because a visitor may have assigned their

But I assigned background color to white already

The idea is that you can get a bad surprise if you don't specify
the background directly on elements where you specify "color:..."
You cannot always rely on the inheritance from higher up.

If you read

http://www.w3.org/TR/REC-CSS2/cascade.html

and such, you will be in a better frame of mind to just follow
this good practice whenever you can remember to do so.
 
A

Andy Dingley

Ganesh said:
http://www.seashellwebs.com/structure1/structure1.htm

Can you please check the same now. I've got that working once again.

Looks nice. Reasonable coding too, and it's valid.


A few comments:

Doctype should be 4.01 Strict, not Transitional, if this is a new page
you're working on.

<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
would be better served as a HTTP header, not a <meta> tag, if you can
possibly set the server up to do this. In general, if it's not
essential, then I'd ignore this tag anyway -- they cause a lot of
trouble if they're not accurate and when you _really_ need them then
it's worth getting the headers right.

"<br><em>P tag used: No Class assigned</em><br> "
This is misleading - this _isn't_ a <p> tag, it's just one piece of a
large unstructured lump of text. It would be better to re-structure
this, particularly in this case where you expected linebreaks and
whitespace around it.

Structure is always good. Adding structure when you author the document
is quite easy and it's easy to make this structure invisible later on.
In contrast it's hard or near-impossible to try and infer structure
later on when you didn't include it at the beginning.

At the very least, this should be a <div> not a<p>. It's not a
"paragraph" in the sense of English grammar.


"<br><br>"
It's bad practice to use repeated <br> tags. It's unclear what they
mean - Should this be rendered as one space or many? Certainly they
shouldn't be used as a substitute for controlling whitespace through
the CSS margin properties.

"<br>"
<br> is an inline line-break, which should only be used for typesetting
poetry and the like where one verse does have rigid linebreaks inside
it. This example is clearly using them for whitespace between text
blocks. Use <p> or <div> instead

"<strong>This is a brief explanation about the product,
service</strong>."
Should this use <strong> or <span class="tagline" > ? Most good coders
would favour the second. Personally I'd compromise and happily use
<strong class="tagline" > if I could reliably anticipate the "strong"
was always appropriate for this context. I'd definitely add the class
attribute though.

I might even use <div class="tagline" > (this would have to be inside a
<div>, not a <p>). I'd then set display:inline; in CSS. Crucially
though, the "tagline" concept might be more appropriate as a "separate
piece of text" and thus a <div>, rather than just a lead-in to the same
paragraph.


".content h2 { font-size: 130%; margin: 5px; }"
I'm a little wary of setting font-size larger than 100%, then setting
margins in pixels. It's not wrong to do this, and setting very small
margins with a pixel unit is a reasonable technique. However think
about how the page is redrawn with an enlarged text size. You could
have quite large characters here and they'd still keep only a tiny
margin between them.

When thinking of what units to set margins in, think of horizontal and
vertical separately. It's often good practice to use a different unit
for horizontal and vertical. If some good reason does cause you to use
an unusual choice of unit (e.g. horizontal measures in pixels to fit
around an image) then this reason may well apply to one direction but
not the other.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top