Link to home
Start Free TrialLog in
Avatar of Julian Haines
Julian HainesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HTML Table


Is there a way of stopping people selecting a table on an HTML page?  at the moment I have some text in a table and you can select the whole table using the + handles.

Avatar of James Bilous
James Bilous
Flag of United States of America image

I'm not sure what you mean by + handles, but you can apply some css rules (which are browser dependent) on the container in order to stop selection:
Avatar of skullnobrains

you can convert that table into an image.

you can create a pseudo table using absolutely positioned divs and write the divs in random order so selecting is feasible but the order will be messy.

you can use pagination so only a few lines at a time can be selected

you can add a transparent modal div over the table : this is quite easy to circumvent for power users, but quite efficient if they are limited to easy copy-paste. that would be the easiest to implement by far.
Avatar of Julian Haines


Thanks sounds good it just looks messy when you move over a table and the handle appear.

You can also change the mouse cursor to a pointer using CSS
if it just "looks messy" the modal is good enough by far. the css might also work, i'm unsure. but then you probably do not want to do this. different browsers will act differently. this is basically not html related.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial