• Hi there

    I am working on this page: https://www.nadaav.com/n

    It is a single column page and I have been having trouble aligning a few photos – changing the text, zooming in, viewing on different browsers, all seem to pull the photos out of alignment. I think the best option would be to make a second column and put the photos in there.

    Is anyone able to advise me if it is possible to add a second column to this page, and use it for photos?

    And if so, how would I go about it? I only want the second column on this specific page, not all my single column pages.

    I am working with a child theme.

    thanks kindly

    NS

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter savedave

    (@savedave)

    Thanks for this.

    Accidentally I seem to have found an alternative, possibly temporary solution – let me know if you think it will do the job.

    In this code:

    .singular .entry-header,
    .singular .entry-content,
    .singular footer.entry-meta,
    .singular #comments-title {
        width: 85%;
    }

    I increased width to 90%.

    I did this for another reason but it seems to have solved the problem, surprisingly – at least it does on my browsers.

    Do you think this is an adequate solution to the problem – I am not really sure why it fixed things and if I change the text I wonder if the alignment will go out again…

    SD

    Do you think this is an adequate solution to the problem – I am not really sure why it fixed things and if I change the text I wonder if the alignment will go out again…

    Changing width of element doesn’t clear the float. Should you ever rewrite that article taking out some sentences or paragraphs or words, the proportion will be off again.

    Paul’s solution above really is the best way to go – it corrects the fundamental problem.

    Thread Starter savedave

    (@savedave)

    Thanks. I’ll have a try. I got scared when I saw that much code!

    Thread Starter savedave

    (@savedave)

    So if I understand correctly, Paul you suggest adding this code to style.css

    /* Clearing floats */
    .clear:after {clear: both;}
    .clear:before, .clear:after {display: table;content: "";}

    Which I have now done.

    I am not sure what you mean about applying this code to two paragraphs:

    <!--...-->
    <p class="clear">I direct, write and produce..</p>
    <!--...-->
    <p class="clear">In comedy my work is playful ..</p>
    <!--...-->

    I presume you mean adding <!--...--> before and after each of the two paragraphs starting “I direct, write…” and “In comedy my work…”

    Is that correct?

    As for the first two pieces of code you wrote, am I write to assume I can ignore those – they will be the results of correctly following the rest of your instructions?

    Sorry if I am asking newb questions and thanks so much,

    SD

    Actually you don’t put <!--...--> there, it stands for whatever something already there, the point is the <p> that needs to have class="clear".

    Any <p> that needs a clearfix, make it <p class="clear">.

    Thread Starter savedave

    (@savedave)

    I see. So to clarify, all I need to do is add the CSS to my stylesheet (which I have done), and in the text editor add <p class="clear"> before each paragraph that is causing a problem.

    Have I understood this time?

    thanks

    Yes. Write post normally. When you’re done with the post, switch to Text Mode, you would see all the tags <p> put there by WP automatically.

    All you have to do is put in class="clear", to any <p> that needs resetting the float for things that comes after.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘[twenty eleven] Adding a second column’ is closed to new replies.