Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

div class reputation nit

by Lady_Aleena (Curate)
on Sep 14, 2020 at 17:18 UTC ( #11121746=monkdiscuss: print w/replies, xml ) Need Help??

<center> elements are being used in the divs with the class reputation. <center> has been rendered obsolete, deprecated in HTML 4 and XHTML 1.

Obsolete

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

- <center>: The Centered Text element (obsolete) on MDN web docs

Please remove the <center> elements in favor of using the CSS property text-align: center?

Edit: It is easier to restyle text-align: then to style the <center> tag.

My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.16.3 or 5.30.0 on web host depending on the shebang.

No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena

Replies are listed 'Best First'.
Re: div class reputation nit
by jdporter (Canon) on Sep 14, 2020 at 20:33 UTC

    Patches applied; check it now.

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.

      I commend your rapid patching. Even though it broke my ajax voting code. :P

        Thanks. Sorry about that. I hope it won't take much to restore it to working order.

      Please move the style to css/common.css (around line 50) instead of it being inline. Pretty please?

      My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.16.3 or 5.30.0 on web host depending on the shebang.

      No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
      Lady Aleena
Re: div class reputation nit
by jcb (Vicar) on Sep 15, 2020 at 02:04 UTC

    Now this is a change I can support and a step in the right direction towards using <div> for layout. The next step is to move the inline style attributes to a linked stylesheet so we can have different stylesheets for screen display, hardcopy, and mobile.

    Instead of inline style, there should be a "base" stylesheet with: (if I remember CSS correctly)

    .reputation { text-align: center; margin: 0 auto; }

      Agreed. I should have been more explicit about where I wanted the style for those elements to go. I did not mean for the style to be inline. All styles need to be in the css file, so our personal styles can be applied.

      Edit: div.reputation is in the common.css already, so this could be added to it, though it shares its style definitions with span.modvote.

      My OS is Debian 10 (Buster); my perl versions are 5.28.1 local and 5.16.3 or 5.30.0 on web host depending on the shebang.

      No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
      Lady Aleena

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://11121746]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2020-12-01 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?