How to correct CSS formatting problem in Visual Studio

Tags: css,visual-studio-2008

Problem :

I've developed a webpage in visual studio, but whenever I open the page in "view in browser" the formatting is skewed (I used line-height attribute, but it didn't work. Please see sample). Yet whenever I upload the site to a real server, the formatting is correct again. Does that mean I need to install IIS to view the site properly? Thanks!


Solution :

No, this is not directly related to Visual Studio. It may just mean there is a problem with your layout.

You should be testing all your pages in all of the major browsers. If they all work, then I wouldn't worry about it. But I suspect some browsers may have problems formatting your page.

And if you are using a different browser to preview your site than you are using to view it on the server, then that's your answer. You need to test with all major browsers.

    CSS Howto..

    How to draw mobile device edge using CSS?

    How to vertically align data in the center of a table cell in HTML?

    CSS Less changes not showing. Compile or IIS error?

    How to use JSF generated HTML element ID with colon “:” in CSS selectors?

    How to start ordered list from 2 not 1 with w3c validity and IE 6 compatibility?

    How can I make an div span the entire width of my screen

    How to create correct .css for Html.TextBoxFor

    How to remove hover effect from a column of a table

    How to add background image to only one page in Jade

    how can i change the css style on click with table

    wordpress submenu css show on parent active and child active

    How to use HTC behavior in jQuery CSS for IE?

    How to centering a form

    how to order CSS elements?

    How to make a grid (like graph paper grid) with just css?

    How to hide element with css with specific title?

    How can I style XML with CSS for viewing in a browser without first transforming to (X)HTML?

    How to override line-height and height css properties that are adding from external css using inline css?

    How to make your website works on a projector?

    How to hide a parent div if an inner div has a certain class, with javascript

    Show range slider above Bootstrap progress bar (in navbar)

    how to allow transform in htmlpurifier

    How to limit a transform scale to the width and height of the parent element in CSS?

    How to force input type text within span width

    How to make css counter works with css selector?

    How do I increase the width and font-size of my twitter feed widget?

    How to make irregularly-shaped SVGs overlap while maintaining all areas clickable?

    How can I stop my CMS’s CSS affecting my content?

    How to move hamburger menu to the front of overlay menu

    How can I change a table td width using CSS in Spiceworks?