471,598 Members | 1,224 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

Help with DIV tags PLEASE

I created a DIV layout on Myspace. You can only use CSS or HTML on the site.. I think that may be where I went wrong. There is 3 div tables on my page. I successfully added a picture to the first DIV. For some reason in Div3, pictures and links wont show up. Can anyone tell me why!? I tried putting a javascript inside the div tags but it's not allowed. Here's my code....

If you're familiar with myspace, this part of the code is on my "ABOUT ME" in CSS


.div1 {
background-color:ffffff; color:000000;
border:0px solid; border-color:silver;
width:245px; height:250px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-295px; margin-top:80px; text-align:left;
visibility:visible;}

.div2 {
background-color:ffffff; color:000000;
border:0px solid; border-color:silver;
width:245px; height:475px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-295px; margin-top:355px; text-align:left;
visibility:visible;}

.div3 {
background-color:ffffff; color:000000;
border:0px solid; border-color:silver;
width:350px; height:750px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-30px; margin-top:80px; text-align:center;
visibility:visible;}
marquee { z-index:8; }
table div, span, td td td, table div div { visibility:hidden !important; }
.bbzContainer div, .bbzContainer div font, .bbzContainer div a, .bbzContainer div div, .bbzContainer font a, .bbzContainer span, .bbzContainer div table a, .bbzContainer div table img, .bbzContainer div table font, .bbzContainer div table, .bbzContainer div table td, .comt, .comt td, .comt span, .comt a, .comt div {visibility:visible !important;}

.bbzDiv {content:"Overlay Generator beta";}
</style><BR><BR>
<div style="display:none;"><table><tr><td><table><tr><t d><table><tr><td>




and this code is inserted in my "MUSIC" section...


<div class="bbzContainer">
<div class="div1">

this is where i have an image and it works...

</div>
</td></tr></table>

<div class="div2"><BR>

stuffs in here...

<BR></div><BR><BR><BR>


</div><BR><BR><BR>

<div class="div3"><BR>

this is where i put the pictures and links... they wont work.

for example..


<img src="blah blah blah">
<a href="http://www.google.com">google</a>

i put them in here but they don't show up on the page.


</div><BR><BR><BR>



help!!?
Aug 18 '07 #1
4 1324
Atli
5,058 Expert 4TB
Hi.

First of all, don't user <BR>, use <br /> instead.

Does anything show up in div3?
Aug 18 '07 #2
drhowarddrfine
7,435 Expert 4TB
You can only use CSS or HTML on the site.. I think that may be where I went wrong.
It would be fun to see a page created without HTML.
First of all, don't user <BR>, use <br /> instead.
<br /> only exists in XHTML so <br> is correct usage.
Aug 18 '07 #3
Atli
5,058 Expert 4TB
<br /> only exists in XHTML so <br> is correct usage.
True. Sorry my mistake.
Isn't the <br> tag, and whatever version of HTML it belongs to, a bit out of date tho?
Aug 19 '07 #4
drhowarddrfine
7,435 Expert 4TB
Not at all. It's used to cause a break in a line. What you may be thinking, though, is when it's used for creating space. That is not its intended use and there are better solutions, namely margin and padding.
Aug 19 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by PaulThomas | last post: by
1 post views Thread by Rahul | last post: by
4 posts views Thread by Mel | last post: by
reply views Thread by Ed from AZ | last post: by
1 post views Thread by shapper | last post: by
1 post views Thread by shapper | last post: by
2 posts views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.