REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
HTML Forum
You are currently viewing our HTML Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
HTML Forum
>
Shifting container (sounds simple)
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
FREE Outsourcing eBook!
Go
Link Back
Thread Tools
Search this Thread
Shifting container (sounds simple)
01-18-2009, 11:10 PM
#
1
(
permalink
)
Shifting container (sounds simple)
wjordan1987
Junior Talker
Posts: 3
Trades:
0
Talkupation:
When I add an h2 tag inside my header div it shifts the whole container div.
Example:
<div id="container">
<div id="header">
<h2>Test</h2>
</div>
<div id="content"></div>
<div id="footer"></div>
</div>
Register
now for full access!
01-19-2009, 06:07 AM
#
2
(
permalink
)
Re: Shifting container (sounds simple)
JeremyMiller
WT Moderator
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades:
0
Talkupation:
I'm not sure what you mean by "shift", but H2 tags have a margin automatically added (creating surrounding space).
__________________
Jeremy Miller
Please login or register to view this content.
Registration is FREE
01-19-2009, 02:49 PM
#
3
(
permalink
)
Re: Shifting container (sounds simple)
LadynRed
Defies a Status
Posts: 10,017
Location: Tennessee
Trades:
0
Talkupation:
You're also probably triggering margin-collapse (not a bug). Try adding 1px of top padding to #header and see if that solves it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content.
Registration is FREE
Please login or register to view this content.
Registration is FREE
« Reply to
Shifting container (sounds simple)
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
HTML Forum
>
Shifting container (sounds simple)
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
1.24683
seconds with
12
queries