Viewing 11 replies - 1 through 11 (of 11 total)
  • Find the below in your CSS and remove it.

    border: 1px solid rgba(220, 220, 220, 0.5);

    Might show a few times so thats why I didnt say exactly where to go.

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    In which CSS-file?
    I checked in the style.css of the raindrops-theme and there i couldn’t find it.

    The border is being set by inline CSS (in the table tag in the html — so trying changing it there.

    Or you could try adding this to the end of your style.css file:

    table tr td {
    border: none !important;
    }

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Hi WPyogi,

    Thanks for your suggestion.
    Adding

    table tr td {
    border: none !important;
    }

    to my style.css helps and removes the inner borders from tables and that looks actually nice in this case. Wierd though that the outer border stays…

    I am not completely sure about the syntax, but if i want now a certain table (with the class “withborder”) to have a border would it work like this in my css-file?

    tr.withborder{
      border: 1px;
    }

    You say its an inline css – do you have an idea where from? I have checked the css files that i saw in this themes folder and couldn’t find the table element being set. hm…

    cheers

    The inline is now set to zero — it was 1 before:

    <table border="0" cellspacing="1" cellpadding="15" class="ohnenix">

    To get rid of the outer border, change what you added to this:

    table, table tr td {
    border: none !important;
    }

    There are table styles being set in the head section of the page too — right above the closing head tag. I’m not sure what’s putting those there…

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Okay, thanks for that explanation! I think bit by bit I get a better understanding of CSS. I see that i am still having trouble with the syntax and how to define elements.

    The change here:

    <table border="0" cellspacing="1" cellpadding="15" class="ohnenix">

    setting border=”0″ (or 1), was me doing this manually. I tried to see if the border element has an effect if I am setting it in html, since it didn’t work with my css styles.
    (also the class “ohnenix” is one i made where I set it with css (border: none;) which also had no effect…)

    The tricky thing about CSS is the “cascade” and specificity. This might be helpful”

    http://www.w3schools.com/css/css_howto.asp

    Another really useful tool is Firebug — and add-on for Firefox which can show you which CSS is taking effect on your page.

    Theme Author nobita

    (@nobita)

    Hi MrSlartibartfast

    RainDrops supports.

    The special method of describing a style rule
    However, this method is applied when this method displays Single post.

    Create a Custom field
    name: css
    value: below

    .ohnenix td{ border:none;}

    and save it.

    It will automatically insert the style rule in your blog header.

    Don’t you think that it is convenient?

    I am sorry to be poor at English.

    Thank you.

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Hi nobita,

    Thank you! Yes it is convenient and it works fine now. My border problem with tables is hereby solved.

    How can you change, that not every row in the table is written in a different colour?
    They are always like this: one row grey, one row black, one row grey…
    Example: http://www.odyssee-reisen.at/?page_id=153&lang=en#gebtabelle_eng

    Cheers

    Theme Author nobita

    (@nobita)

    Hi MrSlartibartfast

    How can you change, that not every row in the table is written in a different colour?
    They are always like this: one row grey, one row black, one row grey…

    when custom field

    /* reset td automatic style rule */
    .entry-content td{
    background:none;
    color:inherit;
    }
    /* add tr style rule */
    .hentry table tr:nth-child(odd) {
      opacity:1;
      background:black;
      color:#fff;
    }
    .hentry table tr:nth-child(even) {
      opacity: 1;
      background:gray;
      color:#000;
    }

    Always table row style rule

    Open style.css
    and add to the last line below rules .

    .entry-content td{
    background:none!important;
    color:inherit!important;
    }
    .hentry table tr:nth-child(odd) {
      opacity:1!important;
      background:black!important;
      color:#fff!important;
    }
    .hentry table tr:nth-child(even) {
      opacity: 1!important;
      background:gray!important;
      color:#000!important;
    }

    Thank you.

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Thank you nobita for the solution!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘format tables in raindrops theme’ is closed to new replies.