Jump to content
php.lv forumi

Image resize by broswer


masq

Recommended Posts

Man vajag izdarīt tā ,lai iekš šā :

 

body { margin: 0; padding: 0; font: 11px Arial, sans-serif; color: #000; 
			background-image: url('../images/bg.jpg');
			background-repeat:no-repeat; 
			background-position: center; 
			background-attachment: fixed;
			height:auto; width: auto;}

vai kāda jauna koda, bilde bg.jpg ,atkarībā no broswera loga mainītu savu lielumu un nezaudētu aspect ratio... tas ir iespējams iekš css? Ja ir kādā veidā?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...