The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Text appears onscreen outside para tags
James
post Nov 2 2009, 09:55 PM
Post #1


Advanced Member
****

Group: Members
Posts: 103
Joined: 29-September 06
From: Western Australia
Member No.: 269



If you look at http://perthsms.com.au/ you will get a better idea of what my problem is.

The text at the bottom of the screen is meant to be inside the second framed paragraph.

The CSS code to centre and frame a paragraph is:
CODE

.framed            { border: 2px solid #333333; margin: 1em auto 0 auto; padding: 3%;
                     width: 50%; font-size: 130%; text-align: left;}  /*used to frame & centre paragraphs*/


I would be much obliged if you could tell me what is wrong here.

Many thanks, James
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Hoary
post Nov 2 2009, 10:52 PM
Post #2


Member
***

Group: Members
Posts: 49
Joined: 2-November 09
Member No.: 10,211



Yes, it's tag soup gone wrong.

You have to understand which elements can and can't be nested within which other elements. (If you want to nest H3, you can't do so within P; you'll have to use DIV.)

Once you think you've got that right, make sure the HTML validates. When the HTML validates, and not before, consider adding CSS.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 06:46 PM