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!

Sample

http://i1230.photobucket.com/albums/ee495/hkingdev/page.jpg



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 make a CSS/javascript feature like this website? [closed]

    How to CSS Img Border on Hover without Shifting Image

    How do I create a full screen click target to work with CSS-only navigation menu with :target?

    How to make flashing text in Css? [duplicate]

    How do I center text next to a floating image using css?

    How to program a CSS3/JQuery/Flexslider carousel with visible sides

    How to move a carousel item to the middle when it's clicked in jquery

    Twitter Bootstrap + Rails, how do you integrate and modify it?

    Show hidden image with jQuery

    How to get list of custom CSS properties

    How to style a video iFrame?

    How to change CSS background-position for the X axis only? [duplicate]

    how to link stylesheet in css

    How to get to be the same width as
    ?

    How to add 10 pixels to a dynamic top position in CSS using SASS

    How to place a div on right side of cascading tables - CSS

    CSS: How the backgrounds can extend the border and overlap?

    How do CSS sprites work?

    How to use the not selector correctly in CSS [duplicate]

    how do i remove the tab from this css megamenu

    How to apply default CSS styling to all HTML pages

    How to share js/css/images across Rails applications?

    How to let the chrome forget the page scroll position?

    How should I re-create this design in HTML and CSS?

    How to link a HTML page to a CSS file when the CSS file is in an upper directory?

    How to vertically center items in a div while keeping responsiveness? [duplicate]

    How can I adjust the Wordpress Twentyeleven theme so that the page width is 100% and centered?

    How to make a central background over the page in HTML/CSS?

    How to replicate {cursor: hand; cursor: pointer} in jQuery

    How to adjust the height of a series of DIVs by CSS