Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Small validation tip  (Read 2126 times)

0 Members and 1 Guest are viewing this topic.

flapane

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 251
    • Flavio's page
Small validation tip
« on: March 11, 2015, 09:10:37 pm »

I've just noticed that changing
Code: [Select]
border="0"to
Code: [Select]
style="border:0"in line 3007 of functions.inc.php, fixes a few w3c validation warnings, at least when using HTML5.
Quote
The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead

The same goes for line 5567, 4161, or also line 3188 in themes.inc.php (valign attribute).

There are a few things here and there (ie. table width, and icon borders) that can be fixed by using CSS and adding classes in theme.php.
Not that w3c validation is crucial, but it could be worth taking a look at it. :)
« Last Edit: March 11, 2015, 11:02:31 pm by flapane »
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.