Announcement

Collapse
No announcement yet.

HTML/stylesheet woes - lining up .jpegs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML/stylesheet woes - lining up .jpegs

    Hi,

    How exactly can I get two jpegs on my website to sit next to each other, rather than on top of each other? At the moment I just have them plonked into the stylesheet. It's a Wordpress blog. Thanks!

    #2
    Put them inside divs and use the attribute 'float: left'. Basically look up div.

    This page lets you try stuff out and might help:

    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

    Comment


      #3
      Images are inline elements, they should sit next to each other by default unless the element they're in isn't wide enough. Check the width of the element they're contained within.

      Comment

      Working...
      X