Custom bullets and paragraph margin-left customisation

Custom bullets and paragraph margin-left customisation

Content Index :

Custom bullets and paragraph margin-left customisation
Tag : html , By : ┬Áilad
Date : November 27 2020, 12:01 PM

hope this fix your issue Updated pen:
  list-style: none;  

ul li::before { 
 font-size: 30px;
 content: "\25AA";   
 color: #cc0c10;  
 display: inline-block;  
 width: 0.8em;
 position: absolute;
 top: -8px;
 left: 0; 

li {
  position: relative;
  margin-bottom: 10px;
  text-align: justify;
  padding-left: 20px;
  <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vestibulum ante vel pellentesque luctus. Aenean est nulla, rhoncus ut nunc et, pellentesque varius nunc. Integer lacus massa, lacinia in turpis et, tristique ultricies ligula. Sed vel malesuada tellus, in consequat libero. Quisque dui nisi, malesuada quis libero quis, laoreet consequat ligula. Phasellus a ligula porta, tincidunt nulla vitae, elementum risus. Nulla eu dignissim ligula.</li>
  <li>Suspendisse vitae eros quis justo egestas tempus at fermentum odio. Nulla facilisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum egestas mi tellus, at semper arcu dignissim sed. Ut tempor ligula ut eros dictum scelerisque. Ut tempus nec nisl eget dictum. Donec sagittis pharetra turpis, nec ullamcorper odio feugiat eget. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce eget sagittis nisl, ac malesuada dui. Vestibulum porta urna a fermentum sollicitudin. Nullam porta commodo urna a pulvinar. Vestibulum a semper urna. Mauris dapibus accumsan ipsum eget viverra. Suspendisse vitae tellus rutrum, egestas est in, sollicitudin urna.</li>
  <li>Pellentesque iaculis ut nunc a tempor. Donec sodales luctus tellus pretium tempor. Aenean egestas leo id ex pharetra commodo. In laoreet porttitor tellus non luctus. Nullam pretium pulvinar arcu nec sollicitudin. Quisque sed nulla imperdiet nulla commodo egestas convallis ac arcu. Sed sit amet turpis tellus. Integer luctus justo a rhoncus vulputate. Duis scelerisque accumsan nibh, vel facilisis urna eleifend sed. Suspendisse hendrerit ipsum ut velit convallis imperdiet. Sed condimentum nisl sed quam laoreet tincidunt.</li>

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Set left margin for a paragraph in html

Tag : html , By : dnyaneshwar
Date : March 29 2020, 07:55 AM
will be helpful for those in need i want to start a paragraph after putting 5 spaces and all the lines beneath the first line should come in a straight line, imean all the lines in the paragraph should have 5 spaces before it starts.
<p style="margin-left:5em;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lacinia vestibulum quam sit amet aliquet. Phasellus tempor nisi eget tellus venenatis tempus. Aliquam dapibus porttitor convallis. Praesent pretium luctus orci, quis ullamcorper lacus lacinia a. Integer eget molestie purus. Vestibulum porta mollis tempus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
  <style type="text/css">
    p { margin-left:5em; /* Or another measurement unit, like px */ }
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lacinia vestibulum quam sit amet aliquet.</p>
  <style type="text/css">
    .container p { margin-left:5em; /* Or another measurement unit, like px */ }
  <div class="container">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lacinia vestibulum quam sit amet aliquet.</p>
  <p>Vestibulum porta mollis tempus. Class aptent taciti sociosqu ad litora torquent per conubia nostra.</p>

Left margin of Margin: auto-ed elements = to padding left of 100%-width overflow item

Tag : html , By : avi
Date : March 29 2020, 07:55 AM
I wish this helpful for you calc() method
This can be done with the (experimental) calc property:
div article {
    margin-left: calc(50% - 300px/2);
div article {
    left: 50%;
    margin-left: -150px;

Align tooltips to the left margin of a common paragraph

Tag : javascript , By : Crilledk
Date : March 29 2020, 07:55 AM
may help you .
I would like, though, the left border of each tooltip to be aligned with the left border of the paragraph, which contains all of the links in question.
a.tooltip:hover .translation {
    display: table;
    opacity: 1.0;
    visibility: visible;

Margin-left for button vs Margin-left for text beside floated left image

Tag : css , By : user155548
Date : March 29 2020, 07:55 AM
To fix this issue You button is not a block element. Which means it gets interpreted as text that's being flowed to the left of the image.
Change the button to be display: block and it behaves the same way as the text.

How to make the button's left margin always equal the table left margin?

Tag : html , By : user182548
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • How to make div rows fill available height
  • How to fix text inside a block that grows
  • svg hexagon halftone pattern
  • How to edit a website's element's background colors using a chromium extention
  • What is the main tag in HTML5 ? How does it differ from body tag?
  • My image is flowing out from my div column. How I can fix it and made the image full-size into div
  • How to draw line in react
  • Why Transition css is not working in child selector css
  • How to modify materialize css select option?
  • How to center some text in a rectangle in CSS?
  • How do I equally space out css grid columns?
  • How to make sure all the parts of a macro are running correctly?
  • How to adjust the zoom of website at different browser at different screen size?
  • Can't set max height on child div properly
  • Why background color is not applying to DIV container?
  • Need to select the first-child
  • No space between attributes in buttons
  • How can I block google from crawling my page, but still let Baidu do it?
  • Rendering html content in matToolTip (Angular)
  • Embedding an iframe when iframe height is variable
  • How to use 'word-break: break-word' with link inside of text?
  • How I can animate circular progress bar from left to right?
  • Angular 6 - How can I hide a div onclick of outside of that div
  • How to fill an inline-block div with a solid color?
  • Form file doesn't align with rest of form
  • How to trim off left and right sides of image evenly as I reduce my screen size? (@media query)
  • How can I password protect a section of a static website?
  • Move a div up when I hover over it
  • Why is "align" not a valid attribute of div but still works?
  • Behavior with height/minHeight and display:flex
  • How can i change my h2 title to <p> text while keeping size and alignment?
  • Hover on the text to change size using CSS
  • How to keep a grid of cols without breaking on a new row?
  • Why is bottom: 0 not enough to move ::after content directly below main content?
  • Why does a React build need to be served? Why can't I just open it in the browser?
  • What is the proper way to target the tab key 'highlight' events on an html element?
  • How to Implement dot and line below the text in CSS?
  • DIVs not properly aligned
  • HTML 'for' tag not working for <p> but works on <label>
  • <p> element does not appear to be within parent <footer> element
  • Why flex container is smaller than its content
  • Center an image and a text in a div
  • .class with display: none -> .class:focus with display: block; causes links to not work
  • Best way to use a right pointing arrow in CSS animation
  • Angular 7 : Select tag doesn't display options
  • Orientation: Landscape showing true for desktop
  • How to adjust text in a table
  • React Button Click Event Not Firing - One Button Works, One Button Doesnt
  • Angular Material: using mat-sidenav, cannot read property 'toggle' of undefined
  • Share image whatsapp not visible
  • Why does ImageResizer increase the loading time?
  • Can someone help figure out whats wrong with my answer on testdome?
  • Safari Viewport Bug, Issues with Fixed Position and Bottom or Top
  • Why does SVG produce blurry image in Firefox for large ViewBox dimensions
  • Do `overflow-wrap: break-word` and `word-break: break-word` ever behave differently?
  • Visual Studio Code: How to remove html tags and write to multiple lines at the same time?
  • How to make a row of images a vertically and horizontally centered div?
  • How to use specificity with css?
  • can't assign two style in different tag
  • How to add custom-logo/image in toolbar using vuetify
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com