html help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dionne90
    New Member
    • Jul 2014
    • 9

    #1

    html help

    I'm doing a course in Web design and am stuck on an assignment. I just need to know how align text to the left in a centred paragraph. I have centred the paragraph but can't seem to align the text to the left. Thanks
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    That doesn't make any sense... Don't center the paragraph.

    Comment

    • dionne90
      New Member
      • Jul 2014
      • 9

      #3
      I mean I want the text left aligned but in the centre of the page sorry for the confusion

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        You mean centered vertically? Centering something vertically does not affect horizontal positioning.

        Comment

        • dionne90
          New Member
          • Jul 2014
          • 9

          #5
          I've only just started the course so I'm not sure..All I need to do is change it so the text looks like this

          but not like this

          Sorry for confusion

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            It's left aligned by default. If you put center tags around it, then take it off.

            Comment

            • dionne90
              New Member
              • Jul 2014
              • 9

              #7
              sorry to have wasted your time I cant seem to explain it properly thanks for trying though :/

              Comment

              • dionne90
                New Member
                • Jul 2014
                • 9

                #8
                Ive attached a a picture of what I mean, how would I get the second paragraph to look exactly the same in centre of page please?

                I already know the bold and italics just the text is aligned to the left and the paragraph is centred.

                If this is any easier for you to understand.

                Thank you
                Attached Files

                Comment

                • Rabbit
                  Recognized Expert MVP
                  • Jan 2007
                  • 12517

                  #9
                  We would need to see the code.

                  Comment

                  • dionne90
                    New Member
                    • Jul 2014
                    • 9

                    #10
                    Code:
                    <html>
                    <center><h1><b>Why was the Internet originally created?</b></h1></center> 
                    
                    Internet technology originally evolved <b>in the early 1960's,</b> at the instigation of the US DefenceDepartment, to enable <i>strategic computer networks</i> to remain <br />
                    operational in the event of one or more nodes being our commission <b><i>during a nuclear war</i></b>. The logic was <i>simple;</i> bombing a system based on an individual <br />
                    mainframe computer would bring down the whole system but bombing <b> a computer to work</b> would result in only a few nodes being lost, allowing the other node <br />
                    to route around the damaged nodes. 
                    <br />
                    <br />
                    
                    <p justify="left">This was achieved by using a methodology know as <b>"packet-switching"</b>, which worked by breaking up a data file into small <i>"packets"</i> and <br />
                    transmitting them to another location <b>by multiple routes</b> where the packets would be re-assembled back into the original data file and duplicate <br />
                    packets discarded.</p><br />
                    
                    <p> In 1969, <b><u> the first packet-switching network </u></b>was originally developed by the Pentagon's Advanced Research Projects Agency, known as <b><i> ARP Anet,</i></b> the original<br />
                    network connected <i> 4 Research establishments,</i> and by 1972 had expanded to incorporate 40 nodes. ARP Anet soon became a forum for the exchange <br />
                    of information and ideas amongst scientists and academics, and within a few years the number of computers connect to the networks <b><u>increased to more than<br />
                    100.</u></b>
                    Last edited by Rabbit; Jul 9 '14, 09:00 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

                    Comment

                    • Rabbit
                      Recognized Expert MVP
                      • Jan 2007
                      • 12517

                      #11
                      Please use code tags when posting code or formatted data.

                      I saved your code in an HTML file and opened it in a web browser. Looks fine to me.

                      Comment

                      • dionne90
                        New Member
                        • Jul 2014
                        • 9

                        #12
                        thanks, what would I need to put to get the second paragraph slightly to the centre?

                        Comment

                        • Rabbit
                          Recognized Expert MVP
                          • Jan 2007
                          • 12517

                          #13
                          Didn't you just say you wanted to left-align it?

                          Comment

                          • dionne90
                            New Member
                            • Jul 2014
                            • 9

                            #14
                            I meant the text I wanted it lined up down the left side and the whole paragraph in the middle of the page, so keep the paragraph as it is just over more to the centre. really sorry for confusing you

                            Comment

                            • Rabbit
                              Recognized Expert MVP
                              • Jan 2007
                              • 12517

                              #15
                              You could use CSS to add a margin or padding to the left side of the p element.

                              Comment

                              Working...