This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML image scaling based on window width?
05-13-2014, 07:00 AM
Post: #1
HTML image scaling based on window width?
I'm trying to learn HTML, and I want to add an image that I'll use as a divider. Is there a way to scale an image by a percent of the page width instead of pixel size?
"divider code"?

And the pixel size is going to vary, I'm trying to prepare for the quite likely situation where it's viewed on the wrong size of a device.

Ads

Find all posts by this user
Quote this message in a reply
05-13-2014, 07:11 AM
Post: #2
 
No. files of any sort which are pictures or graphics cannot be moved by percentile. You can only set the size my dimension, (<img src="divider.jpg" alt="Divider" width="200" height="10">). Perhaps finding the right size of the pixels or pasting the divider code in the same line.

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)