question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Centering Everything?

See original GitHub issue

Hi there. I love your Chrome extension, but I’m not well versed in CSS. Can you tell me how I could change the generated CSS so that everything is Center-Aligned instead of Left-Aligned?

Here’s my current, automatically generated, CSS: `#main a { font-family: “Cantarell”; }

main a { font-size: 2.2em; }

main a { color: #3a3a3a; }

body { background-color: #ebebeb; }

main a:hover { background-color: #a37eff; }

main a:hover { color: #ebebeb; }

main a:hover { box-shadow: 0 0 33.31899999999999px #553fb9; }

body { background-image: url(); } body { background-image: url(); } body { background-position: left top; } body { background-repeat: repeat; } body { background-size: auto; }

main a:hover { box-shadow: 0 0 33.31899999999999px #553fb9; }

main a { border-radius: 1.5em; }

main a { -webkit-transition-duration: 0.2s; }

main a { line-height: 5.6; padding-left: 2em; padding-right: 2em; }

main { width: 400px; }

main { left: 6.280000000000001%; }

main { margin-top: 25.28px; }

.wrap { -webkit-transition-duration: 0.2s; }

options_button { opacity: 0; }

main { margin-top: 80px; width: 1000px; }

`

Any advice or even something I could copy and paste would be awesome!

Thanks a lot 😃

~ Ev

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ibillingsleycommented, Jul 2, 2016

Try, in Custom CSS:

#main { text-align: center; }
0reactions
ibillingsleycommented, May 15, 2019

Still I think it would be good to have an option for alignment in the UI without requiring custom CSS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS: centering things
Web Style Sheets CSS tips & tricks. See also the index of all tips. Centering things. A common task for CSS is to...
Read more >
How to Center Anything with CSS - Align a Div, Text, and ...
Centering things is one of the most difficult aspects of CSS. The methods themselves usually aren't difficult to understand.
Read more >
Centering in CSS: A Complete Guide
If you don't, you just need the content inside vertically centered, using tables or CSS display to make elements into tables can do...
Read more >
CSS Layout - Horizontal & Vertical Align
There are many ways to center an element vertically in CSS. A simple solution is to use top and bottom padding : I...
Read more >
How to Center Text & Headers in CSS Using the Text-Align ...
Learn how to center text horizontally and vertically with CSS. ... Say you have a text-only web page and want to center all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found