made graphics image wont resize in css or html
Hi, I made a small image, its a photo which I cut in gimp graphics, and painted the background, but now it wont go to the correct size in the webeditor. Im trying to put it on a red rectangle which I made with css.
I want it on the right side of the rectangle. It must fit the exact height of the rectangle. Its about a third of the size of the rectangle.
this is the code: .imaget
Then the code I put in html is<div class="image">
Ive tried putting the height and width in img src, but that doesnt work either.
the height and width seems to have no effect, when I put it in. It just stays the same size as it was loaded into the webeditor.
You did not close the brackets in the url - that could cause some problems.
Please learn CSS properly!
>>> Do not hesitate to ask me what you don't understand in the above code!
border: 5px solid red;
background-position: right top;
background-size: 130px 150px;
<div id="my_rect"> Hello world! Am I visible? ... Ok! Bye! </div>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)