answersLogoWhite

0


Best Answer

Well, if by "dynamically" you mean cleanly and clearly, then there isn't really a way to do it. However, you can use this code:

This will change all pictures to the same size. If you only want a CERTAIN picture to change shape, then you'll have to specify as such, for example:

Latest validation requirements and corrections for code given:

"PICTURE1 img" is not going to work unless you do this: #PICTURE1 img { blah }

Must have the "#" for an id.

If you have a selected set of images using that style, you may want to make a class:

Then HTML: Text Description

Additional images of similar sizes can be styled with their dimensions using something like this for each group: img.size_2, img.size_3, img.size_4, etc..

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you dynamically enlarge an image using only CSS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can array size be increased ones its defined?

Yes but only if it is defined as a pointer and memory is dynamically assigned to the pointer.


How do you add texture in buttons in java?

If you are using the Button class, you can't. java.awt.Button only allows for text to be displayed. However, if you are using the javax.swing.JButton class you can make a call to JButton.setIcon(Icon) to add an image onto your button. Example: // Let's create a new button JButton button = new JButton(); // Load the image in img.gif (this image may be a GIF, JPG, or PNG) ImageIcon icon = new ImageIcon("img.gif"); // Add the image to the button button.setIcon(icon);


What is the Difference between a reamer and a drill bit?

A reamer generally can't start a hole, only enlarge one already made.


What advantage does a statistical multiplexer have over a TDM multiplexer or an FDM multiplexer?

Statistical multiplexer does not reserve time slots or frequencies. Instead, it dynamically allocates bandwidth only when it is needed.


How do you display a header image only on the homepage without using php?

There are many ways to do such a thing. One would be to give the header a unique id on the home page and use CSS specify it's background image. Of course, if you're doing that, you might as well just add an image tag to it anyway. If you're looking to add an image on that particular page, without modifying the element into which it's inserted, you could also do it using javascript: <script type="text/javascript"> var URL = window.location.pathname; var pageName = URL.substring(URL.lastIndexOf('/') + 1); if(pageName == 'index.HTML'){ header = document.getElementById('pageHeader'); header.innerHTML = header.innerHTML + '<img src="headerimage.jpg">; } </script>

Related questions

Can a printer enlarge a 4x6 photo?

NO. Printers can only print. If the image has been scanned then there is software that can "enlarge" to a greater print size.Many copying machines have enlargement capabilities.


How do you display an image on the homepage only using CSS or HTML?

HTML only can be used to display an image on homepage. Image SRC tag can be used to publish it.


Why would you receive a 'server not found' error message when trying to view images on Google?

The searched image is only for display. If you wanted to see it enlarge or more upclose you have to also have access to the website.


How do to create a static webpage with only one image as background?

Use html only and that should give you a static page. You can put image as background by using css


Is ther a safe way to enlarge your penis without using steroids?

Steroids will only make it smaller. No, there is no way, safe or otherwise, to enlarge a penis. If there were, we would all have 10 inch ones. Everyone is different and we get what we get. All men are not created equal.


What drug enlarge breast?

There are no drugs that can do that. Only surgery.


How to enlarge samsung battery?

If you want to enlarge the Samsung battery life, it is important that you only charge your battery when the level falls down.


How do you enlarge a girls nipples?

Surgery is the only thing that helps.


Can a tessellation be created using only regular polygons?

No. See, for example, the top image in the attached link.


How do you create a link to a web page using an image?

it depends on what software you are using, but I know in MS Front Page, you need only right-click on the image and choose Hyperlink and you should be able to type in the URL that you want.


Is there a vacuim pump to enlarge male breast?

No. The only things that enlarge a breast is hormones. A male would have take female hormones to have a breast.


Can array size be increased ones its defined?

Yes but only if it is defined as a pointer and memory is dynamically assigned to the pointer.