• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Newsfeed Wrap with CSS

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 3 Posters 2.6k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @schlittrix
    last edited by Mar 24, 2021, 7:40 PM

    @schlittrix i don’t KNOW exactly how to make it work… I;m guessing as I haven’t played with this at all… SO… its quite possible it wouldn’t work…

    i’ll try to get to this a little later today

    so this works

    .newsfeed-desc {
        width: 500px;
        position: absolute;
        left: 37%;
        text-align: center;
    }
    

    use this algorithm to calc the left edge
    (((yy-xx)/2)/yy)*100
    where xx is the width of your news area
    and yy is the width of your screen

    also, notice the leading dot (.) on the class name, this is required

    one other thing… the align: center, aligns EVER line centered… so the 1st line won’t fill to the width …

    Screenshot at 2021-03-24 14-38-32.png

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Mar 24, 2021, 10:01 PM Reply Quote 1
    • S Offline
      sdetweil
      last edited by Mar 24, 2021, 8:12 PM

      @schlittrix thank you for posting this, I was testing on the next release, and there was a new bug in newsreader that I was able to submit fix for…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • S Offline
        schlittrix @sdetweil
        last edited by Mar 24, 2021, 10:01 PM

        @sdetweil said in Newsfeed Wrap with CSS:

        also, notice the leading dot (.) on the class name, this is required

        excellent!!! it works fine now :)
        Thank you! Nice supporter :)

        1 Reply Last reply Reply Quote 0
        • 1
        • 2
        • 2 / 2
        2 / 2
        • First post
          11/13
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy