DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSS
css get the image to the center and to make it relative to the width of the parent.
#image
{
display
:
block
;
max-width
:
100
%
;
margin-left
:
auto
;
margin-right
:
auto
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#css
#image
#center
#relative
#width
ADD COMMENT
Topic
COMMENT
Name
1+4 =
Submit