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.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem with DIV structure, halp!
Old 02-03-2010, 09:51 AM Problem with DIV structure, halp!
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
I'm trying to make a liquid photograph border that will change sizes as a jQuery function is used for a slideshow. I was out of the web design scene for a while and am trying to get back into it.


Right now I'm only working on the left, top, and right sides of it. The bottom shouldn't be hard once I get this.

I can't seem to get the borders to align into the center, and the only way I can even get them lined up with each other correctly is if I use float:left it seems. Doing this causes it to not align in the middle of course.

I am using frame_side for both left and right.


Here is the CSS: (The HTML is right after)

HTML Code:
#frame {
	margin: 0 auto;
}
#frame_side {
	background-image:url(white_6x6.jpg);
	background-repeat:repeat-y;
	height: auto;
	min-height: 250px;
	max-height: 1000px;
	width: 6px;
	float: left;
}
#frame_top {
	background-image:url(white_6x6.jpg);
	background-repeat:repeat-x;
	width: auto;
	min-width: 250px;
	max-width: 1000px;
	height: 6px;
	float: left;
}

HTML:
HTML Code:
<div id="frame">
<div id="frame_side">
</div>
<div id="frame_top">
</div>
<div id="frame_side">
</div>
</div>

What's going on?
__________________

Please login or register to view this content. Registration is FREE
for cheap hosting solutions.
Use the coupon code "SINGLECENT" to pay just a single cent for the first month!
Madman340 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-03-2010, 02:07 PM Re: Problem with DIV structure, halp!
wongpk's Avatar
Extreme Talker

Posts: 178
Trades: 0
Did you try to use width: xx% percentage?

Quote:
#frame {
margin: 0 auto;
width: 100%;
}
#frame_side {
background-image:url(white_6x6.jpg);
background-repeat:repeat-y;
height: auto;
min-height: 250px;
max-height: 1000px;
float: left;
width: 30%;
}
#frame_top {
background-image:url(white_6x6.jpg);
background-repeat:repeat-x;
width: 40%;
float: left;
}
Try something like this instead?

Hope that help...
__________________
Regards,
Andrew

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
wongpk is offline
Reply With Quote
View Public Profile Visit wongpk's homepage!
 
Reply     « Reply to Problem with DIV structure, halp!
 

Thread Tools Search this Thread
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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34968 seconds with 12 queries