Jump to content

Remove the "bleeding" of a text selection


tomatoKetchup

Recommended Posts

Hello,

 

I wanted my website's display area to be exactly 768 px centered on the page. So here's the css properties I applied to the "main" div that contains every element I add on my webpage:

div#main {   margin-left: auto ;              margin-right: auto ;              width : 768px ;}

It works, fine, however when I select several lines of text inside it, the blue selection is bleeding all the way to the left and right of the window (see attached image).

 

How can I prevent this from happening?

 

Thanks for reading!

 

Thomas

post-178046-0-46884500-1415284322_thumb.png

Link to comment
Share on other sites

There's nothing to keep it from being selected based on the code you posted. You can verify this with your developer tools.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...