Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28653

Re: Change font size in multiple classes

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Change font size in multiple classes
Date Sun, 06 Sep 2015 14:07:42 +0200
Organization PointedEars Software (PES)
Lines 30
Message-ID <5339258.obARhecIma@PointedEars.de> (permalink)
References <l8-dnaGgOJ9fWXrInZ2dnUU7-VOdnZ2d@westnet.com.au>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1441541471 21054 eJwFwYERADAEBLCVKP/OOKrsP0ITGJUdTtCxWCPFmNfn3AD1TcJQ1LDyrGTnHh2qaEMeP/9QEBU= (6 Sep 2015 12:11:11 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 6 Sep 2015 12:11:11 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwVxsEBwCAIA8CVQAjBcdDC/iO0vdfBQuPSA+EYjO+iWl4tO7VDqIMEF6Oa9H9XuvOxb7l6RMrspDjgueUFKSgT8g==
Cancel-Lock sha1:f50kr6xrpS5fPGeGh5zsQPXIvrw=
X-NNTP-Posting-Host eJwFwQEBACAIA7BKoD9gHfH0j+DGHR6dCAY4HM10PIxuQjXHmc7Tt1rYsC686GUmoRYNHzZpEUA=
Xref csiph.com comp.lang.javascript:28653

Show key headers only | View raw


Andrew Poulos wrote:

> Within the HTML there's a STYLE element with a selector for every SPAN

Yuck.  Have they not already learned to use XML declarations or “link” 
elements?

> […]
> I'm not sure whether I should
> 
> - find all the "span.text" selectors
> - find and modify the font-size selector
> 
> or
> 
> - find all the SPAN elements
> - get and modify the font size directly
> 
> Is one way "better" than the other or is there another way to do this?

If there are many “span” elements, the former is more efficient than the 
latter; insofar it is better.

There is another way to do this.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-03 13:55 +1000
  Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 10:09 +0200
  Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 10:51 +0200
    Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-03 20:39 +1000
      Re: Change font size in multiple classes Jake Jarvis <pig_in_shoes@yahoo.com> - 2015-09-03 16:20 +0200
        Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:27 +0200
          Re: Change font size in multiple classes Jake Jarvis <pig_in_shoes@yahoo.com> - 2015-09-03 16:30 +0200
            Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:39 +0200
              Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-04 15:49 +1000
                Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-04 09:37 +0200
                Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-04 18:11 +1000
                Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-07 03:33 +0200
      Re: Change font size in multiple classes "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-09-03 16:24 +0200
  Re: Change font size in multiple classes Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-09-05 20:49 +0100
    Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-06 19:30 +1000
      Re: Change font size in multiple classes Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-09-07 20:27 +0100
  Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-06 14:07 +0200
    Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-07 09:53 +1000
      Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-07 20:35 +0200
        Re: Change font size in multiple classes Andrew Poulos <ap_prog@hotmail.com> - 2015-09-08 14:18 +1000
          Re: Change font size in multiple classes Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-09-09 04:51 +0200

csiph-web