Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

IMG Resizing Wtf

Code
<img class="slide-image" src="/images/5.jpg" height="800" width="300">

I cannot get the picture to resize to any amount of pixels. Wtf am I doing wrong?
Code
<img src="images/5.jpg" class="slide-image" style="width: 800px; height: 300px;">

To make it easier, do this:
Code
<img src="images/5.jpg" class="slide-image" style="max-width: 800px;">
(Apr 17, 2015 02:44 PM)✔ Soufian ✔ Wrote:  
Code
<img src="images/5.jpg" class="slide-image" style="width: 800px; height: 300px;">

To make it easier, do this:
Code
<img src="images/5.jpg" class="slide-image" style="max-width: 800px;">

The first one worked. I have to have the pictures that size. Now I have to tackle finding proportionate pictures that will fit the 800x300 box I have. Lol.
(Apr 17, 2015 02:47 PM)eXero Wrote:  The first one worked. I have to have the pictures that size. Now I have to tackle finding proportionate pictures that will fit the 800x300 box I have. Lol.

[Image: UMhdQw4.png]
Try this
I already have the pictures I am using. I edited them in photoshop.
An Advice :

If you have a lot of images with the same properties, put a class="" in all of them like class="image_cool"

And on your file .css put this

.image_cool {
width:800px;
height:300px;
}

It's much better for you :D

And css inline is a bad pratice xD
I just figured I'll inform you, you forgot the measurement.

Code
height="800px"
etc

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by VirtualFrostJun 29, 2016 04:10 AM 5 180 Jun 29, 2016 04:10 AM
Last Post: VirtualFrost
by Wide AwakeDec 23, 2015 09:13 AM 4 124 Dec 23, 2015 09:13 AM
Last Post: .trigious
by FortniteSep 24, 2015 12:22 PM 5 162 Sep 24, 2015 12:22 PM
Last Post: Squito