SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    change tag w/@media query. Is this possible?

    Or should it be done w/jquery & if so what is the bkm please?
    basically I have title in the .php with an id, set to <h2> for the full size screen.
    when the screen goes to 800px or less I want to change it <h4> for example. How can I go about doing this please?
    I don't think I can do this css.
    thx
    D

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,175
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    No, you'd need JS for that. But I suspect you are thinking about this the wrong way. It's either an h2 or an h4. It sounds like you are confusing the meaning of the HTML with the appearance of the HTML. Is it just that you want the heading to appear differently on different screen sizes? In that case, just change its styling with @media rules.

  3. #3
    SitePoint Guru
    Join Date
    Oct 2010
    Location
    Portland, Or
    Posts
    724
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you know...you are semi right. sorry long day at work. just targeted the #text h3 & changed the color & size w/a @media query.
    sorry! don't know what I was thinking...
    thx
    D

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,175
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    No problem! Glad your question is answered.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •