This is a new ASP.NET web application using vb.net 2010
Now I need to change the direction of the whole site to right to left
so that the login view is aligned to the left and title to the right
This is a new ASP.NET web application using vb.net 2010 Now I need to
Share
See CSS attribute
direction. http://www.w3schools.com/cssref/pr_text_direction.aspThe way I achieved this with my project was by using the LESS CSS compiler. I created two variables: one called
PrimarySideand one calledSecondarySide. In LTR languages those variables wereleftandrightrespectively; in RTL it wasrightandleftrespectively.Then anywhere I was setting margin, padding, border, or float, or clear, which are things that I might set left and right styles for, I would use the @PrimarySide variable instead. For example:
float: @PrimarySideinstead offloat: leftThis let me swap out a few variables and compile new versions of my CSS without having to go through and change every location I was doing something with the left or right side.
If this isn’t an option for you, then look for the above CSS styles I mentioned and make a RTL version of your CSS that effectively swaps all of their left and right values, set direction: rtl, and you’re done!