Question

<div align="center">
    <img src="<%=image1%>" class="<%=imgSizeCss%>" />
</div>
<table border="0" align="center">
    <tr>
        <td>
            <table border="0">
                <tr>
                    <td class="<%=header1%>">
                        SSSS</td>
                </tr>
            </table>
            <div align="center">
                <img src="<%=image%>" class="<%=imgSimCss%>" />
            </div>

I have two divs.

The first div stretches img to 100%.

The second div stretches img to 75%.

But my second div is not working. Looks like image works, but not image1. How can I fix it?

Was it helpful?

Solution 2

I can fix it. As div2 is within table , it is not working properly. So I just remove div2 outside. Thanks.

OTHER TIPS

You said "number two", but your your code only has "image1" and "image". Maybe that's the problem?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top