locked
All paragraph heights changing together? RRS feed

  • Question

  • Hi!

    Sorry for a completely amateur question... Very rusty on my ASP.NET.

    In the past (using VS 13) when I've resized a paragraph in the GUI editor it has automatically given the <p> an style tag defining it's height but I've just started using VS 15 and when I resize one <p> it changes the css page and defines all <p>'s as that height so when I change one paragraph they all change. Is there a setting I can use to stop them all resizing?

    Thanks!

    Joe

    Saturday, August 1, 2015 7:07 PM

Answers

  • Post your html code here and by right you should post it to http://forums.asp.net

    chanmm


    chanmm

    • Proposed as answer by Just Karl Wednesday, August 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, September 4, 2015 10:05 PM
    Sunday, August 2, 2015 4:23 AM
  • As chamm said, the better place to st is the ASP.Net forum:

    http://forums.asp.net

    I'll try to answer anyway:
    Since you want different formatting for those paragraphs, obviously they are not normal paragraphs. So you should not use the normal paragraph tag in the first place. Like you should not use paragraph for a header line.

    What is thier purpose? (Headers? Subheaders?) Define a new tag name for that purpose or start using an existing one. Modify the CSS and HTML for this header. Keep in mind that CSS allows inheritance and to override or add settings.
    The entire idea of CSS is to not put text styling info into the HTML anymore. That technique is frowned upon. History showed it causes so much issues is was worth developing CSS just to get rid of it.

    • Edited by Christopher84 Sunday, August 2, 2015 5:25 AM
    • Proposed as answer by Just Karl Wednesday, August 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, September 4, 2015 10:05 PM
    Sunday, August 2, 2015 5:24 AM

All replies

  • Post your html code here and by right you should post it to http://forums.asp.net

    chanmm


    chanmm

    • Proposed as answer by Just Karl Wednesday, August 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, September 4, 2015 10:05 PM
    Sunday, August 2, 2015 4:23 AM
  • As chamm said, the better place to st is the ASP.Net forum:

    http://forums.asp.net

    I'll try to answer anyway:
    Since you want different formatting for those paragraphs, obviously they are not normal paragraphs. So you should not use the normal paragraph tag in the first place. Like you should not use paragraph for a header line.

    What is thier purpose? (Headers? Subheaders?) Define a new tag name for that purpose or start using an existing one. Modify the CSS and HTML for this header. Keep in mind that CSS allows inheritance and to override or add settings.
    The entire idea of CSS is to not put text styling info into the HTML anymore. That technique is frowned upon. History showed it causes so much issues is was worth developing CSS just to get rid of it.

    • Edited by Christopher84 Sunday, August 2, 2015 5:25 AM
    • Proposed as answer by Just Karl Wednesday, August 5, 2015 4:52 PM
    • Marked as answer by Just Karl Friday, September 4, 2015 10:05 PM
    Sunday, August 2, 2015 5:24 AM