Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-26-2010, 07:19 AM   #1
Member (10 bit)
 
ChoboSeki's Avatar
 
Join Date: Sep 2006
Location: Roanoke, VA
Posts: 516
Send a message via AIM to ChoboSeki
How do you overflow a div inside a div with a bg?

I have a midcontent and mid DIV.

mid = 1024px
midcontent = inside the mid div @ 850px

the mid div isn't changing height size, the midcontent just overflows into the lower div

When the midcontent text gets too much for the 600px height box, I want the mid DIV to overflow with the background repeating downward (no scroll bars)

I would assume you have to set the midcontent's position to something but it didn't do anything.

HTML Code:
<div id="mid">
  <div id="midcontent">asfasfasasfasfasfasfasf
  </div>
</div>
HTML Code:
#mid {
	background-image: url(midcontent.gif);
	height: 600px;
	width: 1024px;
	margin: 0px;
	overflow: visible;
}
#midcontent {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 16px;
	color: #000;
	width: 850px;
	float: right;
	margin-right: 81px;
	height: 600px;
}
__________________
HD: Seagate Barracuda 320GB PRT SATA 3.0 (7200/16MB), 120GB Seagate Barracuda (7200/8MB)
MB: Asus P5Q Pro Turbo
CPU: Intel C2Q Q9650 3.0 GHz
GPU: BFG GeForce 8800 ULTRA
RAM: G Skill 4GB DDR2 800MHz/PC6400
PSU: Corsair 620-HX
Case: XCLIO A380 Silver
Monitor: Sceptre 20.1" Widescreen (5ms/1000:1)
Headset: Logitech USB Premium 350
Mouse: Logitech G5

Last edited by ChoboSeki; 12-26-2010 at 07:21 AM.
ChoboSeki is offline   Reply With Quote
Old 12-26-2010, 07:35 AM   #2
Member (10 bit)
 
ChoboSeki's Avatar
 
Join Date: Sep 2006
Location: Roanoke, VA
Posts: 516
Send a message via AIM to ChoboSeki
Nevermind I got it


Had to make mid height 100%
overflow: auto

midcontent height 100%
overflow: auto
ChoboSeki is offline   Reply With Quote
Old 12-26-2010, 01:50 PM   #3
Member (7 bit)
 
Join Date: Oct 2008
Posts: 103
Erm, misread OP
__________________
ASUS P7P55D-E | Intel I5-760 @ 2.8GHz | Corsair XMS3 8Gb @ 1333MHz | WD Caviar Black 1TB | HIS Radeon 6850 | Corsair 750TX 750W | ASUS 24x DVD Burner | Antec Nine Hundred | ASUS VW246H 24" | Windows 7 Home Premium 64-bit
Jbc223456 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2