Reply to Re: Avoiding borders

Your name:

Reply:


Posted by dorayme on 03/29/07 21:45

In article <460be257$0$762$bed64819@news.gradwell.net>,
Dylan Parry <usenet@dylanparry.com> wrote:

> jodleren wrote:
> > How do I avoid borders in my <html> file?
> >
> > say: <html><body>hello world</body</html>
>
> I presume you mean the white space around the content? If so, these are
> called margins/padding. Read up on CSS and margins, then find out how to
> remove the margins/padding from the "body" element using CSS.

OP can put:

* {margin:0; padding:0; border: 0}

in the style sheet and not put any margins, padding or borders in
elements to override this instruction. But it is to be used with
caution. The default css for browsers usually have built in
intelligence to give some reasonable grace to things, paragraphs,
blockquotes and so on. If you wholesale remove all as above, you
need to set margins and paddings specifically to restore this
grace.

If this is a snippet from an html file, it is not valid, OP
snipped a ">" for a start.

Secondly, watch out for bare text in the body - under 4.01 Strict
you should be enclosing in an element like <p></p>. Which brings
us to a point: if you do not want borders and space around
something, you can so specify,

--
dorayme

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация