Read the statement by Michael Teeuw here.
Newsfeed Wrap with CSS
-
@sdetweil said in Newsfeed Wrap with CSS:
@schlittrix yes
u can specify lots of style elements in a single class like that
for readability you should put the contents on separate lines inside the braces
like thisnewsfeed-desc { width: 700px; text-align: center; }
thank you so much :)
I will try this today in the evening -
@sdetweil said in Newsfeed Wrap with CSS:
@schlittrix yes
u can specify lots of style elements in a single class like that
for readability you should put the contents on separate lines inside the braces
like thisnewsfeed-desc { width: 700px; text-align: center; }
so i tried this step without success…
When I just have the “width”-line, the text is wrapped, but not centered.
But when I put in these code with text-align, nothing happend and the text is no more wrapped…any ideas? :(
-
try this
newsfeed-desc { width: 700px; display: flex; justify-content: center; }
from here https://stackoverflow.com/questions/6618648/can-overflow-text-be-centered
-
@sdetweil said in Newsfeed Wrap with CSS:
newsfeed-desc {
width: 700px;
display: flex;
justify-content: center;
}Don’t know, maybe I’m stupid…
but it still doesn’t work…
this is my config-setup:{ module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "Tagesschau", url: "https://www.tagesschau.de/xml/rss2/" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true, showDescription: true, wrapDescription: true } },
and this is the css-file:
newsfeed-desc { width: 500px; display: flex; justify-content: center; }
-
@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 screenalso, 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 …
-
@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…
-
@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 :)