Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Different style for the fragment of a document

Reply
Thread Tools

Different style for the fragment of a document

 
 
Jonathan N. Little
Guest
Posts: n/a
 
      12-01-2008
Netx wrote:
>> So you decided a second stylesheet was the solution to your
>> problem, without even figuring out why your added content is
>> "almost invisible"?

> It seems to me obvious that new content is invisible because of
> color combination from the oryginal style (bright letters for
> links) and the bright color of backgroud in the place where I am
> adding text and links.


That is why if you had validated your stylesheet

http://jigsaw.w3.org/css-validator/
The W3C CSS Validation Service

You would have received a warning whenever you create a rule that set
the color *without* also setting the background-color.

>
>> If you post a URL, we may be able to suggest a better solution.
>> Do not post code, post a URL.

> Can't post you link to my site as it is my "training site" on
> Windows with many features (ftp, mysql, apache, joomla etc.)
> because of which I am afraid of my Windows security at the
> moment. Also currently it is only training for me to see how new
> techniques work and learn a bit (I was programming html
> "professionally" 10 years ago when css was in its childhood and I
> didn't use css).
>
> I have just uploaded only the frontpage to free-hosting site and
> here is the address:
> http://www.cavea.yoyo.pl/
>
> The problem I was describing here was to add visible links and
> some comments which are (see below the top banners):
> "KRASNAL NA KOMPUTERZE MARKA B.
> Joomla Site, Joomla-Admin
> KRASNAL PACK: Fusion, Geeklog, Ibp, Ibp2, Jportal2,
> Mambo, Nuke, Postnuke, Przyklad-2, Sqlitemanager, Test,
> Xoops2."
>


We set the background color when you set the text color, confirmed here:

http://jigsaw.w3.org/css-validator/v...vea.yoyo.pl%2F
W3C CSS Validator results for http://www.cavea.yoyo.pl/ (CSS level 2)

Also, markup is a mess. Getting constant results will be impossible with
so many errors

http://validator.w3.org/check?verbos...vea.yoyo.pl%2F
[Invalid] Markup Validation of http://www.cavea.yoyo.pl/ - W3C Markup
Validator

I think you have your work cut out for you. My advice is first fix your
markup errors, then add your style...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-01-2008
Chaddy2222 wrote:

> You should
> not need an entire stylesheet *seperate from the main one* to define a
> single part of a document.


If you use <p style="line-height: 1.2">...</p>, then you _are_ using an
entire stylesheet separate from the main one. It's not a separate CSS
_file_, but it's a separate stylesheet.

> The only reason I would use an extra CSS
> file would be if I needed to style each page differently (for whatever
> reason).


You can style each page differently using a single stylesheet if you like.
For example, use different id attributes for the <body> elements, and you
can do all the styling inside a single stylesheet.

Whether this is practical depends on what you are doing. The discussion has
been quite abstract, so the answers are abstract too - which implies that
any _simple_ answer is most probably wrong.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      12-01-2008
In article <> ,
mbstevens <> wrote:

> On Mon, 01 Dec 2008 18:03:54 +1100, dorayme wrote:
>
> > In article <GltYk.99110$_> ,
> > "Jukka K. Korpela" <> wrote:
> >
> >> >> Generally, one stylesheet should be the first aim. Separate out only
> >> >> if it is unwieldy.
> >>
> >> This advice from "dorayme" is dangerous, because it is far too easy to
> >> misunderstand it.

> >
> > Some people have argued that such statements are neither true nor false
> > on the ground that there is no such subject. Others have argued that it
> > is false for the same reason. The dispute turns on whether an assumption
> > of an assertion is part of what is asserted or simply needing itself to
> > be true for the assertion to be a proper candidate for truth or falsity.

>
> Most people find the claim that not-p completely obvious and when I
> assert p they give me an incredulous stare. But the fact that they find
> not- p obvious is no argument that it is true; and I do not know how to
> refute an incredulous stare. Therefore, p.
> <Lewis>
>



The only time I knew of a remark about the "incredulous stare" was when
Lewis was talking about the lack of argument he was receiving against
his solitary position on possible worlds. In spite of the great respect
he was held in, for extremely good reasons, I never came across anyone
who believed him. There may have been some, but no established figure in
the field put their heads up above the trenches in any me-too. It's a
grand picture though!

I was talking about a very specific issue, whether to call a statement
true or false if the subject does not exist (To take a couple of
English, Russell thought yes, Strawson, no). But the whole world would
at least agree that a claim that a name has given dangerous advice
cannot be true, whether it can be false or not. <g>

> >
> > A linguistic object cannot give advice, dangerous or not. But a
> > creature, no matter how disgusting or cowardly, can. I, dorayme, gave
> > the dangerous advice, not my name. My name is not the sort of thing that
> > subscribes to newsgroups. But my very own cowardly self is very much the
> > sort of thing that can subscribe.


--
dorayme
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy responseXML DOM fragment to the document Alexander Mikhailian Javascript 3 10-16-2005 03:09 PM
Applying an XSD to a fragment of the document. n4te Java 0 04-02-2005 04:56 AM
Applying an XSD to a fragment of the document. n4te XML 0 04-02-2005 04:56 AM
Toggling Content in SPAN element, One is Text Node, Other Document Fragment User Access Approved Javascript 0 10-15-2004 02:39 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM



Advertisments