|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
box model issue
Submitted by bj2design on Tue, 12/19/2006 - 05:42
Just wanted to ask when tackling the box model hack, you need to take into consideration margin, padding and border values for the box/container, but what about values for declarations for /p/ and /a/ etc when you add padding to these.
For example
<p class="long">
<p class="short">
.long
{ padding: 0 40px}
.short
{ padding: 0 10px}
Will this play havoc on your box/container?
New forum topics
- [MELB] Web Developer | Web Designer | Graphic Designer | Marketing Manager
- Open Source Online Invoicing Software
- Professional Drupal Consulting, Design & Development Services in Australia
- New Year Speacial-Professional Website for 400$ with doamin+Host
- Ruby on Rails Oceana
- WebDev/Design/Research/Consultant - PHP/MySql, Javascript, Joomla, HTML, Flash, AJAX
- Freelance ASP.NET Developer
- System Monitoring with Nagios
- Learning Ruby? What about the RubyMentor Project?
- Need a team
- JAOO Sydney/Brisbane 2009
- Get Your Business a Website for $399 ONLY !!!
- Concrete5: Another CMS!
- Manage The Cloud with Amazon Web Services
- Crystal Reports developer needed


Shouldn't do. I assume you are worried about the padding and margin pushing your containers out of shape?
Yes thats right, I was wondering if the additional m/p placed on other tags inside the <div> would effect the box. It was just a passing thought. Thanks
if you had your
<p>tag at width:100% then probably it would be a problemWouldn't that be a bit of a weird thing to do? There are a few issues once you start adding p/m to width:100%
Yeah it would I guess. I've never done it.
But it's the only way it would stretch things (from what I gather).
I saw someone had this problem the other day somewhere with
<ul>Post new comment