javascript code for load different css on portrait format and landscape format images

i have a image inside a carousel styled with

.preview img


width: 800px;

height: auto;


i need javascript code so that this css is called for landscape format images only

if the image is portraitformat it should be used

.preview img


width: auto;

height: 530px;


Compétences : Javascript

en voir plus : image carousel code, snowflow images javascript code, javascript transition images background css, javascript resize height width image, code scrolling images javascript, lightbox javascript css code, load images javascript, rotating images javascript page load, css set max height width image, javascript css code convert, rotate images javascript page load

Concernant l'employeur :
( 219 commentaires ) Steyr Gleink, Austria

Nº du projet : #8465413

Décerné à:


Can you please explain more about the task ? I think that i can help. Hope that we can work together. Thanks for reading :)

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(31 Commentaires)

3 freelance font une offre moyenne de $25 pour ce travail


Hello, i am expert in jquey. I am ready to solve this issue . i think i can fix this in less then 1 hours . So please message me so we can discuss more . I am sure you will happy with my work. Thanks.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(1 Évaluation)

Good knowledge of CSS and JavaScript. Worked on many JavaScript projects. I will complete your milestone within a 2 days.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)