Jump to content
tomatoKetchup

Remove the "bleeding" of a text selection

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...