Forums

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

Home Forums Design What's the syntax for adding a new class to an element?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #247425
    mw84
    Participant

    Hi,

    I’m using other’s template and their CSS is huge and minimized. For a DIV they have already assigned a class to it, but I’d like to make its Height shorter. One way is to create a new tiny class specifying desired height, say, it’s called myClass.
    So, for this DIV, they have
    <div class="row"> ... </div>
    I’d like to add myClass to it, so, would it be?
    <div class="row,myClass">...</div>

    Result: it does not seem to have any effect. What is supposed to be the right way to do it?

    Thanks.

    #247426
    Paulie_D
    Member

    Just a space


    <div class="row myClass">...</div>
    #247427
    mw84
    Participant

    Thanks. But when it didn’t change the height, instead, removing background attribute from the existing class.

    here’s what this one-line class looks like:
    .fixHeight {height: 70px;}

    is something wrong? Thanks.

    #247429
    mw84
    Participant

    As a workaround, I put combine the into one DIV.

    #247432
    Paulie_D
    Member

    Without knowing any more we can’t say why it didn’t work.

    A snippet of CSS means nothing in isolation.

    A minimal demo in Codepen.io would be ideal.

    #247433
    mw84
    Participant

    ok,
    here it is, http://54.80.71.115/titlereport/contact.html
    but as mentioned, I’ve combined the two DIVs into one, that is, the display of contact info and the FORM for sending a message.

    Thanks.

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