You are here: Re: horizontal rule and border colour « HTML « IT news, forums, messages
Re: horizontal rule and border colour

Posted by dorayme on 09/04/06 02:09

In article <pnLKg.22645$rP1.3677@news-server.bigpond.net.au>,
"Wombatwal" <bartsimpson@hotmail.com> wrote:


>
> "dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
> news:doraymeRidThis-E47733.10551004092006@news-vip.optusnet.com.au...
> > In article <uuKKg.22604$rP1.3005@news-server.bigpond.net.au>,
> > "Wombatwal" <bartsimpson@hotmail.com> wrote:
> >
> >> G'day all
> >> I have this on one of my pages of my small web site, not yet published.
> >>
> >> <HR noshade color="#008000" size="5" width="100%" align="center">
> >>
> >> <table border="4" bordercolor="#008000">
> >>
> >> How can I express these two values in a "proper" way. It is only a small
> >> web
> >> site so prefer something simple, this also goes with my HTML knowledge.
> >
> > Which two values? The table ones? Perhaps closest to what you
> > want is <table style="border: 4px #008000 solid">
> >
> > Further still but tidier is to collect all the styles for your
> > page in the head of the html:
> >
> > <style type="text/css" title="text/css">
> >
> > table {border: etc}
> > hr {color:etc...}
> >
> > </style>
> >
> > And tidier still is to hive off all the styles to separate sheet
> > and link it via a statement in the head section:
> >
> > <link rel="stylesheet" type="text/css" href="myStyles.css">
> >
> > And then in the body, you need only have things like
> >
> > <table>
> >
> > and
> >
> > <hr>

> Thanks dorayme
> I do have an external style sheet, but I want this only on one page only. I
> can put the hr on the external style sheet, but the table border I don't
> know because I already have table attributes in there for other tables.
>

Please try to bottom post here... (I moved your reply).

OK, if it is different things you want for different tables then
either the inline style I suggested as first option above is for
you. Any inline css will overide your main sheet in respect to
any clash, which is useful. You have tables no border generally
for example, but a particular table can have one.

You can al;so achieve these things by use of id and class. At
this point, you need a css tute...

--
dorayme

 

Navigation:

[Reply to this 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

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