How To Replace Line Break Tags (
) With Spaces In CSS | TimOnWeb
Có thể bạn quan tâm
- Python
- JavaScript
- Django
- Wagtail
- DevOps
- CSS
- Misc
Tutorials
- Python
- JavaScript
- Django
- Wagtail
- DevOps
- CSS
- Misc
Sep 22, 2020 · Updated: Jul 12, 2021 · by Tim Kamanin
Let's say you have a text separated by line break tags <br>, like this:
One file only.<br /> 50 MB limit.<br /> Allowed types: gif, jpg, png, svg.<br />And you want to turn the text into a single line, like that:
One file only. 50 MB limit. Allowed types: gif, jpg, png, svg.If you don't have access to the HTML, you might be tempted to reach for JavaScript, but wait, my friend, put that big gun down, you can solve the task with the only CSS!
The trick here is to use the CSS content property.
We will solve it in two steps:
Step 1
Re-set the content of the line break tag to prevent it from, you guessed it, breaking a line. Add the following CSS code:
br { content: ""; }Từ khóa » Html Br Substitute
-
What Is The Alternative To
If I Want To Control The Height Between ... -
What Is The Best Alternative To Repetitive Typing Of
Tags In HTML ... -
Alternative To BR TAG | Learn HTML CSS - YouTube
-
How To Break Line Without Using
Tag In HTML / CSS -
What To Use Instead Of
- HTML Forum At WebmasterWorld -
How To Break Line Without Using
Tag In CSS - W3docs -
Substitution Tags | Twilio - SendGrid Documentation
-
Alternative To
Inside- - HTML & CSS - SitePoint Forums
-
Mod_substitute - Apache HTTP Server Version 2.5
-
Nucleophilic Substitution - Halogenoalkanes And Hydroxide Ions
-
Nucleophilic Substitution - Halogenoalkanes And Cyanide Ions
-
Effects Of Halogen Substitution On The Optoelectronic Properties Of ...
-
Using The Br Tag - Line Break Tag