Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS horizontal layout

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29737
    revok
    Participant

    Hello

    I am developing a wordpress site and my client is asking for a horizontal layout.

    This is basically what they are asking:
    http://www.simontornby.dk/layout.png

    I can’t seem to figure out how to make wp align my images horizontally.

    Any help would be much appreciated.

    Thanks
    Simon

    #80413
    noahgelman
    Participant

    You could go .post img { float:left;} but that would line all the images side by side, that wouldnt get them to fit snugly together like you have in your image, at least not the first one. The only what I can think of it working is manually, and thats the opposite of what wordpress is for you know?

    But what I think you can do is create some classes that will arrange the images in the way you want so when you create a post, just click the image, and apply the class you want. If you do it like that you’re gonna need to have a good mental picture of how you want it to turn out.

    I hope that made sense.

    #80463
    revok
    Participant

    hi

    thanks for the quick reply.

    I am still battling with this though.
    I am actually considering making my client make 1 big image containing the collage of smaller images. I really think that wordpress’ way of handling images is difficult to work with.

    /S

    #80466
    revok
    Participant

    Actually I can’t seem to make my images to float left.

    I have tried .post img {float:left} but they still align vertically.

    Also i want to seperate my text and images in my content. Is there a default class for paragraph text in wordpress? If i start changing just p, it affects the images as well…

    /Simon

    #80486
    revok
    Participant

    ok.

    It seems that the "big image" solution is applicable. My client apparently doesn’t mind the extra load time.

    Now the question is more about the relationship between my .post img and .post p

    Here is how the basic layout will be:
    http://www.simontornby.dk/layout2.png

    The big image will vary in width and the p will have a fixed width and will be floating right of the image.

    This is basic html, but I can’t seem to make it work with wp. The post content (img and p) seems unseperable.

    Usually I would clear the floats between the images and the text, but i can’t figure it out with the php…

    Any help with this would be much appreciated.

    Thanks
    Simon

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.