Simple Coding Question

by 12 replies
14
Hi Everyone,

I need your help with a basic coding question. I just had a website completed for me which basically is setup where the blog post will show up on the main page and also has a separate blog post page where the same information is stored. When a new post is created, it replaces the current blog post on the main page but obviously all the separate blog post pages will remain.

The problem I am having is that the formatting on the main page blog post is not the same as on the separate blog post page. Basically, it does not recognize the page breaks <p> between each paragraph on the separate blog post page. But if I add another <p>, it will show the page break on the separate blog post page. The only problem with that is it will then show up as a double page break on the main page blog post.

Any ideas on what I should be specifically looking for in the coding to resolve this issue?
#programming #coding #question #simple
  • Seems to be some CSS related stuff...
    • [1] reply
    • Thanks for the response. Where would I go look to find that type of information.
  • Doesn't sound right... Do you have a url?
    Easier to see what's happening.
  • Yep - could you give us a URL to see what we are dealing with here?
    • [1] reply
  • style.css line 23

    div, p, ul, li, form, h1, h2, select {
    padding: 0;
    margin: 0;
    }

    the margin: 0; seems to be your problem
    • [1] reply
    • What do you think I should change it to? I am very new to coding so I apologize for not knowing what to do next.
  • /*margin: 0;*/

    /* */ means you make it a "comment", just in case you need to revert
    • [ 1 ] Thanks
    • [1] reply
    • So you are saying I should change line 23 to read from:

      margin: 0; to /*margin: 0;*/ ?

      Ok, it looks like that worked. Thank you very much.

      The only thing is I am not sure exactly what this part means:
      "/* */ means you make it a "comment", just in case you need to revert"? What do I need to be worried about here?
      • [1] reply

Next Topics on Trending Feed

  • 14

    Hi Everyone, I need your help with a basic coding question. I just had a website completed for me which basically is setup where the blog post will show up on the main page and also has a separate blog post page where the same information is stored. When a new post is created, it replaces the current blog post on the main page but obviously all the separate blog post pages will remain.