This is a discussion on "Body ignoring <p> tag" within the Web Page Design section. This forum, and the thread "Body ignoring <p> tag are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Body ignoring <p> tag
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Body ignoring <p> tag
Anyone got any ideas as to why my body text area is ignoring my <p></p> tags? Thanks
html
|
|
#2
|
||||
|
||||
|
Re: Body ignoring <p> tag
You mean that you don't even get paragraphs? I can't see why. If it's up, do you have a url so we can see the problem? All I can think of is something screwy in the <head> or doctype that is causing some weird markup language.
If you mean your css isn't affecting your <p> style,that's a different issue. |
|
#3
|
|||
|
|||
|
Re: Body ignoring <p> tag
Not sure why the paragraphs are giving you trouble but I would change the following:
body {margin:0px; padding:0px; font: 0.7em verdana, arial, sans-serif; to: body { margin:0; padding:0; font-size:0.7em; font-family:verdana, arial, sans-serif; } You don't need to specify a value on any element with a value of 0. Sounds teeny but in the long run will save you typing time etc.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#4
|
|||
|
|||
|
Re: Body ignoring <p> tag
|
|
#5
|
||||
|
||||
|
Re: Body ignoring <p> tag
Quote:
I think you havn't uploaded the HTML file to the right place....
Last Blog Entry: Giving them what they paid for: A (sort of) Follow-up (Oct 15th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Body ignoring <p> tag
Are you telling me that when you click on the link you can see paragraph spacing between Add some here and Add some more text?!
When I preview and upload the file I view the page as so... Add some here Add some more text instead of Add some here Add some more text I can cheat and put the following in and it seems to come up as okay in W3C, however it shouldn't need this. <p>Add some here</p></br> |
|
#7
|
||||
|
||||
|
Re: Body ignoring <p> tag
Quote:
No, you're quite right. You shouldn't need to use <br />. I'm guilty of this one from time to time though. It is a quick fix that validates quite well. But... THis particular issue seems to be some kind of bottom margin issue on your <p> tags... Try giving your <p> tags a bottom margin of like 10px... see if that solves anything. Again the default should put a bottom margin in there but for some reason it doesn't look like it has...
Last Blog Entry: Giving them what they paid for: A (sort of) Follow-up (Oct 15th, 2008)
|
|
#8
|
|||
|
|||
|
Re: Body ignoring <p> tag
If you set a single padding/margin on your paragraphs then they will lose their default values so you need to specify p { margin: top right bottom left; } etc..
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#9
|
||||
|
||||
|
Re: Body ignoring <p> tag
Quote:
Oh well, this is why your a better designer than me moojoo....
Last Blog Entry: Giving them what they paid for: A (sort of) Follow-up (Oct 15th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Body ignoring <p> tag
Thank you folks, this did the trick!
margin:0px 0px 10px 0px; Got another problem with my right div tag but will try and see if I can suss this out before posting. |
![]() |
| Tags |
| body, ignoring, ltpgt, tag |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE6 Ignoring some styles but IE7 works fine?? | swillicott | Web Page Design | 4 | May 14th, 2008 12:35 |
| Firefox ignoring padding-left | rawling | Web Page Design | 9 | Jul 11th, 2007 23:03 |
| IE 7 ignoring css fonts choice | ukgeoff | Web Page Design | 5 | Oct 24th, 2006 17:15 |
| methods of ignoring HTML | ama | Web Page Design | 5 | Jul 31st, 2006 19:37 |