CSS/html horizontal list with image -
i trying have text display right of image using simple css , text displaying below image rather right. works okay text.
here jsfiddle - http://jsfiddle.net/ejn7u/
-which not seem show images--and text go right of alt text in img tag. can't figure out way display images in jsfiddle on own server, text displaying below image, not right.
would appreciate suggestions. thanks. here code:
.hlist li { display: inline-block; margin-left: auto; margin-right: auto; } <ul class="hlist"> <li><img src = "pic.jpg" alt="picture"></li><li>some text</li><li>some more text</li></ul>
edited remove ul tag
i trying have text display right of image using simple css , text displaying below image rather right. works okay text. here jsfiddle - http://jsfiddle.net/ejn7u/ -which not seem show images--and text go right of alt text in img tag. can't figure out way display images in jsfiddle on own server, text displaying below image, not right. would appreciate suggestions. thanks. here code: edited remove ul tag | ||||
ul
not valid child oful
element; childul
should contained withinli
(the only valid child oful
orol
). showing images on js fiddle, have use absolute path (http://www.example.com/path/to/image.png
),pic.jpg
doesn't exist on server. – david thomas jul 6 '12 @ 23:30