RomeScape
November 21, 2017, 07:56:14 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: My new email:
Pankers7@gmail.com
email me if u need anything Tongue
 
  Home   Forum   Help Search Arcade Staff List Login Register  

inline html width & height


Pages: [1]   Go Down
  Print  
Author Topic: inline html width & height  (Read 8 times)
Mazead
New-Member


Reputation +0/-0
Offline Offline

Posts: 10


View Profile
« on: October 17, 2014, 05:22:42 am »

To speed up page load, I'm adding inline style to my html for the images - but curiously, the recommended w3schools method isn't working:
Quote
<img src="test.png" alt="test" width="120" height="80"/>

...while what I thought was 'old fashioned' is:

Quote
<img src="test.png" alt="test" style="width:300px; height:auto"/>

I'm using XHTML 1.0 Transitional - is the first example HTML5 only?
Report Spam   Logged

Social Buttons



Pages: [1]   Go Up
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum | Buy traffic for your forum/website
Powered by SMF | SMF © 2016, Simple Machines