• Hi.
    I’d like to know how to edit CSS for a single page.
    I’m making a table in page x, and because of HTML5 I can’t edit the width of the table like <td width=”20px”>hi</td> (in proper coding ofc)
    Now I need to change this in the CSS file but I can’t find the correct place to edit this in the extremely long CSS file (Using AccessPress Pro theme).
    Anyone PLEASE help me..

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter Iceper

    (@iceper)

    Yes, that is because I moved the page to another location. I don’t have th in my table. I use tr and td. Which one should I use?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oops, I meant to use td

    Thread Starter Iceper

    (@iceper)

    Changed it to td. Still no good as you can see… :/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What’s the page url again?

    Thread Starter Iceper

    (@iceper)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sorry you’re asking too much of me.

    Thread Starter Iceper

    (@iceper)

    So you can’t help me..?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Not without a link to your site

    Thread Starter Iceper

    (@iceper)

    I’ve put it on the forums here 2 times, but removed it because.. well.. my page isn’t finished yet!
    http://iceper.nl/page/

    There you go

    Thread Starter Iceper

    (@iceper)

    Thanks for your help so far πŸ™‚

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You may have to remove it again because I cannot support you fast enough.

    Thread Starter Iceper

    (@iceper)

    I’ll leave it on the forum now until we’ve reached our point of success πŸ™‚

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please note that you cannot edit your post 25 – 40 minutes after it was created.

    Your styles are actually coming through to the page, the issue is that the <table> itself has been styled to have a 100% width. Try overriding that by adding this as well:

    .su-table table {
      width: auto !important;
    }

    If that doesn’t work, try this:

    body .su-table table {
      width: auto !important;
    }

    Thread Starter Iceper

    (@iceper)

    Thank you very much! The second one worked! Now I’m finally able to change my tables πŸ˜€

    Then I still have another question. How can I make an image be on the right of the page while the text is on the left of the page?

    Thread Starter Iceper

    (@iceper)

    Wait.. When I change my width to 100px now it doesn’t work.
    The exact code I have in the custom CSS manager is

    .page-id-336 td {
        width: 100px;
    }
    
    body .su-table table {
      width: auto !important;
    }
Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘CSS for a single page?!’ is closed to new replies.