<style>
div.transbox
{
margin:0px 0px;
background-color:#000;
border:0px solid black;
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
}
div.transbox p
{
margin:0px 0px;
opacity:100%;
}
</style>
</head>
<body>
<div class="transbox">
<img src="/sunimages/a2gang.jpg" width="720" height="426" /><br />
<em>Back:</em> Derek Spencer, Eddie West, Sean Calligan, Joseph McCauley<br />
<br />
<em>Front:</em> Morghan Peressini, Nosa Ott, Vanessa Stefaniuk, Cassandra Piesz
<br />
<em>Not Pictured:</em> Hail Kim</div>
</body>
I'm honestly not sure how I would specify the transparency in the img tag. Tried setting opacity=100% in the img tag, the div took over so it was still semi transparent. I've tried looking this up and everything says to just use a div. But if I put a div inside of another div, the first one craps out.Items inside other items adopt the parameters of the parent. Therefore the images and text become alpha 0.6.
Try it without the alpha to see if it gives you the effect you want. It shouldn't end up as a white box, so itmaubewhat you're looking for.
If not, then set the alpha of the image explicitly, to override the alpha in the div. depending on how you do things this may mean setting the alpha of the image in the image tag, or putting it inside another div with no alpha, or setting the CSS for the img tag to no alpha.
to the style but that didn't do it either..div.transbox img
{
margin:0px 0px;
border:0px solid black;
opacity:100%;
}
Go to w3schools.org too. Its run by the same people, but its more meant for learning stuff. I find that its generally easier to understand there.Actually, it may just be more helpful for you if I point you to the resources I would use to look this up; so I'd recommend, if you haven't already, reading through both the HTML and CSS tutorials at w3c.org.
Don't want the text to be either, just the div BG. But I think I've settled on just fully transparent bg for the divs anyway. The text is still legible, though I'll have to change the font style for links.[DOUBLEPOST=1359912550][/DOUBLEPOST]I wouldn't worry too much about the size of the bg image. It'll only be a problem once (it'll be cached for return visitors), and even then, probably not a noticeable one. Also, you're doing it right when you use divs instead of tables. Divs are more semantically correct, and will easier to restyle if you so choose in the future. The general idea is that tables are for tabular data. Gridded displays go in divs (on the chance you want to change the appearance, but not the content later).
So you want the text in the divs to be semi-transparent, but you want the images in the div not to be? I'm looking at the specification for the opacity property, and it is marked as non-inherited. That's interesting. What you're doing honestly looks correct. I can play around with it later (I'm pretty well versed in HTML, CSS, PHP, etc.) but I have to go replace the vent windows in a 1957 Chevy Bel-Air right now.
I've looked at that one, but mostly, I've been perusing:Actually, it may just be more helpful for you if I point you to the resources I would use to look this up; so I'd recommend, if you haven't already, reading through both the HTML and CSS tutorials at w3c.org.
Go to w3schools.org too. Its run by the same people, but its more meant for learning stuff. I find that its generally easier to understand there.
Right now it's just the imbed code from vimeo.What code are you using to display the video?
a good practice from what I hear is to have multiple versions of the video available for the browser (ie avi, ogg, webm and flash) and hopefully one of those will be loaded by the browser.
The video is actually displaying, but because of what it's doing to the background, you have to scroll down to the bottom right corner to see it (or any other content on the other pages, for that matter)<iframe src="http://player.vimeo.com/video/15508608" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
Here's the main menu page. (Don't judge me):Do you want to post all the page code you are using?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sun Day Film Online</title>
</head>
<!--#include virtual="sundaystyle.shtml" --><center><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="sundaystyle.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type = "text/css">
/* <![CDATA[ */
html, body { height: 100%;
width: 100%}
#menu {
position: fixed;
left: 5%;
top: 20%;
width: 20.5em;
margin-top: 2.5em;
}
a:link {
text-decoration: underline;
text-color: #0FF
}
a:visited {
text-decoration: underline;
text color: #FF0
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
#content { width: 74%;
height: 100%;
float: center;
overflow: auto }
/* ]]> */
body,td,th {
font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
color: #FFF;
}
</style>
</head>
<body background="/sunassets/background.gif" leftmargin="100%" topmargin="100%" marginwidth="100%" marginheight="100%">
<center><a href="http://www.sundayfilmonline.com/mainmenu.shtml"><img src="/sunassets/mainmenugo.gif" border="0" width="500" height="213" /></a></center>
<div id = "menu"><a href="/a2group.shtml"><img src="/sunassets/a2go.gif" border="0" alt="A2" name="A2" width="290" height="40" /></a>
<br />
<br />
<a href="/journey.shtml"><img src="/sunassets/journeygo.gif" border="0" alt="Journey" name="Journey" width="290" height="40" /></a>
<br />
<br />
<a href= "characters.shtml" /a><img src="/sunassets/charactersgo.gif" border="0" alt="Characters" name="Characters" width="290" height="40" /></a>
<br />
<br />
<a href= "music.shtml" /a><img src="/sunassets/musicgo.gif" border="0" alt="Music" name="Music" width="290" height="40" /></a>
</div>
</body>
<iframe src="http: //player.vimeo.com/video/ 15508608" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
Can't see the video? Some Internet browsers have trouble with embedded content. <a href="">Click here to go directly to the vimeo page.</a>
</center>
</body>
sundaystyle.css: .highlightit img{
filter: progid: DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5;
opacity: 0.5;
border-width:0px;
border-color:#000000;
}
.highlightit:hover img{
filter: progid: DXImageTransform.Microsoft.Alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
border-width:0px;
border-color:#000000;
}
a:link {
text-decoration: underline;
text-color: #0FF
}
a:visited {
text-decoration: underline;
text color: #FF0
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
I was shying away from divs because I didn't know how to use them; my own site is built almost exclusively with tables. But after like a week of fiddling with the combination of tables, divs inside tables, and tables inside divs without any real design consistency in the site, something in my brain finally clicked last night while brushing my teeth and in like 15minutes of coding just now, I got it working all with divs.I wouldn't worry too much about the size of the bg image. It'll only be a problem once (it'll be cached for return visitors), and even then, probably not a noticeable one. Also, you're doing it right when you use divs instead of tables. Divs are more semantically correct, and will easier to restyle if you so choose in the future. The general idea is that tables are for tabular data. Gridded displays go in divs (on the chance you want to change the appearance, but not the content later).
So you want the text in the divs to be semi-transparent, but you want the images in the div not to be? I'm looking at the specification for the opacity property, and it is marked as non-inherited. That's interesting. What you're doing honestly looks correct. I can play around with it later (I'm pretty well versed in HTML, CSS, PHP, etc.) but I have to go replace the vent windows in a 1957 Chevy Bel-Air right now.
Tables are the devil for page layout and design. When you need to show information, sometimes a table is your best bet.I wouldn't call them the devil, they're just not very future proof when it comes to layouts. They're great for tabular stuff that's semantically tabular.