The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › force width of an element
I have a image for example with a width of 980px.
I have a container div of 980px and inside it a content div of 900px.
I put the image in the content div like this :
width: 980px !important;
And it’s working, but I’m wondering if it’s possible to use position:relative for example or other method instead of using position:absolute.
P.S Don’t tell me to put it in the container div :)