Forums

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

Home Forums CSS CSS Pseudo-elements Responsive Content Change Question

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165402
    wolfgang1983
    Participant

    I hope i can explain this correctly.

    What I am trying to get is. When the website is in desktop view I would like in my column “col-lg-1” in the h3 tag to say “1” but when it is in mobile view @media only screen and (max-width: 767px) {} I would like the h3 tag to say 12 its just for demo purposes.

    <div>
    <div>
    <div>&lt;h3&gt;12&lt;/h3&gt;</div>&lt;!== Display desktop Number 12
    </div>
    </div>
    
    @media only screen and (max-width: 767px) {
    
    <div>
    <div>
    <div>&lt;h3&gt;12&lt;/h3&gt;</div>&lt;!== Display Mobile Number 12
    </div>
    </div>
    
    }
    
    #165409
    Paulie_D
    Member

    I’m not sure what you are trying to do but, from what I can gather, you are using the content property incorrectly.

    If you are adding actual content you are going about it the wrong way.

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