The general rule is that you’re not allowed to drive across a solid line (or obstruction marking). However, you are allowed to drive across them in certain situations, such as if you have to pass that marking in order to pass an obstruction located on the road you’re driving on. Besides that you’re also allowed to cross a solid line by the carriageway if it’s while entering or exiting a private property or other similar area located on the side of the road.