OZONE Asylum
Forums
Stupid Basic HTML
getting div and p to play nice
This page's ID:
9699
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I've been awhile from hand coding for a bit, but it's time to get back into it. I have a div and it's all good. Position, padding, and margins. That is, as long as I use just div and content. Like: [div] content [/div] Cool beans. However, I get extra vertical space when I use p with the content: [div] [p] content [/p] [p] more content [/p] [/div] That's not good, and I'm not sure about an appropriate fix. I suppose I could toss in some extra div to replace the p. Something like: [div1] [div2] content [/div2] [div2] more content [/div2] [/div1] But I would like to avoid that if there is a better, more "correct" solution. I suspect something like p.span or p.whatever or something, but I don't know much about these inline things. Feel free to toss some insight my way. (Once I get this done, time to dig back into PHP.) edit: p.whatever p class="whatever" seems to do the job Now, is there a way to adjust the space between the p tags? A little too far for my tastes. Hmmm... I've to check the container properties. [This message has been edited by warjournal (edited 11-13-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »