User talk:CJDOS
Welcome to the English Wikipedia, CJDOS! |
|
Index
| ||
This page has archives. Sections older than 14 days may be automatically archived by ClueBot III. |
Setting maximum width relative to display
[edit]Timeshifter: My question doesn't feel entirely relevant to Help:Table until I know it can or cannot be done. If it can be done with a table, then I would like to recommend its inclusion. I've read in the Help page of three ways to adjust the width of a cell (and by extension, the table): pixel width (px), point width (pt), and em numbers. While I could dial this in for my display, it may behave oddly on other displays or if I change my browser's zoom factor.
How do I get a colored background to display all the way to the end of the screen without scrolling or wrapping, and automatically adjusts for display/zoom (provided that the text itself is less than the width of the screen)? Here are two examples... except the background stops just after the text:
Using a table
Some brief text |
Using simple font style
Some brief text
As you see, only the box immediately surrounding the text has a LightBlue background. I would like the background to go right to the edge of the screen, always at the maximum width no matter how much I zoom in or out my display. How is that done? — CJDOS, Sheridan, OR (talk) 23:05, 21 June 2021 (UTC)
Update: I apologize for bothering you. I just came across the answer to my question: add display:block;
to the style= parameter. Would this info be a useful inclusion to the Help:Table page? — CJDOS, Sheridan, OR (talk) 23:17, 21 June 2021 (UTC)
- Can you give me an example? So I can look at in action with all the wikitext. --Timeshifter (talk) 01:19, 22 June 2021 (UTC)
- Using a table
Some brief text
- Using simple font style
- Some brief text
- — CJDOS, Sheridan, OR (talk) 01:27, 22 June 2021 (UTC) (rewrote 01:33, 22 June 2021 (UTC))
- Using simple font style
- I was looking at the many display property values here:
- https://www.w3schools.com/jsref/prop_style_display.asp
- I am a newb concerning most of them.
- Feel free to add more info to Help:Table. Add to existing sections, and/or start new ones.
- --Timeshifter (talk) 18:26, 22 June 2021 (UTC)