Unstoppable Domains

Layout question

Spaceship Spaceship
Watch

bizness

New Member
Impact
0
I'm having problems figuring out how to add my context box to my layout. Anybody know how I can accomplish this? Here are photos of my layout and how I
would like my box...

Layout...

Main.jpg


Context Box...

Bio.jpg


Layout with how I want the box...

Main-withbox.jpg


Is this possible?? I kind of want to avoid using flash.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
this could be accomplished with a table inside a table. The inside table could be the bio section and the outer table could be the main table. Just have the cell that the inner table is in have a background image for the baby.
 
0
•••
As of right now, the baby already is in its own table, sliced from where the black meets the pink nav bar and sliced again just about where it says Harmon Photography Inc. I've been using Dreamweaver MX 2004 and I tried putting another table in there as you suggested but I can't seem to move it. I can align it left/center/right and thats it (for my knowledge anyway :) ) How could I align it in the general position I have in the picture?? Also, the box will stretch as more and more content is put into it. EDIT: will it keep its transparency?
 
0
•••
Don't use tables for that!

I'll make a quick demo for you...

be back soon...
 
0
•••
Here's the demo I just whipped up, feel free to take the code and modify it to suit yourself.

http://www.rowanw.com/tests/two_backgrounds.htm

It uses just uses three divs, one div provides the transparent colour, one div contains the text and the other contains the background image. Very simple stuff, and should work very well.

If you have any further questions just ask.
 
0
•••
you can use layers.....the div tag..
 
0
•••
Awesome. Thanks a lot :)

Ok I'm back with a problem. I used your demo and got it all lined up and stuff but I'm having problems switching my background in there. I have it sliced into 3 parts header/body/footer so the body will stretch as content is put in it. This might be a silly problem but it is stumping me :td:

header...

bio-header.gif


body...

body.gif


footer...

footer.gif


thats how they are laid out. Put together they make a 400x250 image (well they did with the regular sized body).
 
0
•••
You don't need those images at all, you just need background colours and borders.

Copy this code and try to figure out what you need to change to suit your own design, I've left a few comments in the CSS to help you out:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<style type="text/css">
<!--
body {
	margin:0;
	padding:0;
}
#container {
	width:760px; /* change this size to fit your background image */
	height:420px; /* change this size to fit your background image */
	background-image:url(http://www.rowanw.com/tests/images/square_bg01.png); /* put your background image in the brackets */
	background-attachment:fixed;
	background-repeat:no-repeat;
	background-position:top left;
}
#contentbg {
	position:absolute;
	top:20px; /* use these coordinates to position the transparent box = 20px from the top */
	left:10px; /* use these coordinates to position the transparent box = 10px from the left */
	background-color:#ff7f9f;
	border:1px solid #000;
	filter:alpha(opacity=80); /* for IE transparency */
	-moz-opacity:0.8; /* for mozilla transparency */
	opacity: 0.8; /* for safari transparency */
	khtml-opacity: 0.8; /* for konquerer and older safari transparency */
}
#content {
	width:500px; /* this changes the width of the transparent box */
	position:absolute;
	top:20px; /* this value has to be the same as the other coordinates */
	left:10px; /* this value has to be the same as the other coordinates */
}
#content .text {
	padding: 0 1em;
	text-align:justify;
	font-size:1em;
}
#content .title {
	font-size:1em;
	font-weight:bold;
	font-family:century gothic;
	background-color:#f79;
	padding: 0 1em;
}
-->
</style>
<!--[if IE]>
<style type="text/css">
#contentbg {
	width:500px; /* if ie, this needs to be changed to match the width of #content */
	height:200px; /* if ie */
}
</style>
<![endif]-->
</head>

<body>

<div id="container">
	<div id="content">
		<div id="contentbg">
			<div style="background-color:#fff;border-bottom:1px solid #000;"><span class="title">.Bio.</span></div>
			<div class="text">
			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>
			</div>
		</div>
	</div>
</div>

</body>
</html>
have fun with that. ;)
 
0
•••
Very nice. Thanks a lot :)
 
0
•••
Ok, this isn't exactly what I was looking for. This makes the whole box transparent. I don't want the top of the box with the label and the white transparent just the pink text area.
 
0
•••
Bump
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back