This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-09 08:13:17

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

div tag help :(

Hey Guys, I have a div on a site I'm building and it uses CSS to curve the edges of the div with images. The problem is that the bottom image curves refuse to fall to the bottom of the "left column" tag. Any ideas?

Code:

<html>     
<head>
<style>

#leftColumn{
          background-color:#333333;
          width:19%;
          height:100%;
          float:left;
}

.bl {background: url(http://dl.dropbox.com/u/6273449/bottomLeft.gif) 0% 100% no-repeat}

.br {background: url(http://dl.dropbox.com/u/6273449/bottomRight.gif) 100% 100% no-repeat}

.tl {background: url(http://dl.dropbox.com/u/6273449/topLeft.gif) 0 0 no-repeat}

.tr {background: url(http://dl.dropbox.com/u/6273449/topRight.gif) 100% 0 no-repeat; padding:10px}


</style>


</head>


<body bgcolor = "#000000">

<div id="leftColumn">
   <div class="bl"><div class="br"><div class="tl"><div class="tr">
   <font color= "red"> Lorem ipsum dolor sit amet consectetur adipisicing elit
   for some stupid reason the bottom corners fall up to the
   last thing in the div tag...
   </div></div></div></div>
   <div class="clear">&nbsp;</div>
   </div>
<br />
<div id="footer" style="background-color:#000000; width:100%; height:20px;">
.  © Crazyman47 & Sparks 2011
</div>
</body>
</html>

thanks!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2 2011-02-09 14:08:25

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: div tag help :(

Maybe this?

Code:

<html>
<head>
<style>

#leftColumn, #middle{
          background-color:#333333;
          width:19%;
          height:100%;
          float:left;
}
#middle{
          width:100%;
}

.bl {background: url(http://dl.dropbox.com/u/6273449/bottomLeft.gif) 0% 100% no-repeat}

.br {background: url(http://dl.dropbox.com/u/6273449/bottomRight.gif) 100% 100% no-repeat}

.tl {background: url(http://dl.dropbox.com/u/6273449/topLeft.gif) 0 0 no-repeat}

.tr {background: url(http://dl.dropbox.com/u/6273449/topRight.gif) 100% 0 no-repeat; padding:10px}


</style>
</head>
<body>     
<div id="leftColumn">
   <div class="bl"><div class="br"><div class="tl"><div id="middle" class="tr">
   <font color="red"> Lorem ipsum dolor sit amet consectetur adipisicing elit
   for some stupid reason the bottom corners fall up to the
   last thing in the div tag...
   ...but they might work now, I don't know...
   </font></div></div></div></div>
<font color="red">   </font><div class="clear"><font color="red">&nbsp;</font></div>
<font color="red">   </font></div>
<font color="red"><br>
</font><div style="background-color: rgb(0, 0, 0); width: 100%; height: 20px;" id="footer">
<font color="red">.  &copy; Crazyman47 &amp; Sparks 2011
</font></div>
</body></html>

/* No comment */

Offline

 

#3 2011-02-09 14:22:29

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: div tag help :(

nope.... all the corners are missing in that...


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-02-09 15:03:38

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: div tag help :(

This works!

Code:

<html>
<head>
<style>

#leftColumn{
          background-color:#333333;
          width:19%;
          height:100%;
          float:left;
}
#middle{
          height:100%;
}

.bl {background: url(http://dl.dropbox.com/u/6273449/bottomLeft.gif) 0% 100% no-repeat}

.br {background: url(http://dl.dropbox.com/u/6273449/bottomRight.gif) 100% 100% no-repeat}

.tl {background: url(http://dl.dropbox.com/u/6273449/topLeft.gif) 0 0 no-repeat}

.tr {background: url(http://dl.dropbox.com/u/6273449/topRight.gif) 100% 0 no-repeat;}


</style>
</head>
<body>     
<div id="leftColumn">
   <div class="bl"><div class="br"><div class="tl"><div id="middle" class="tr">
   <font color="red"> Lorem ipsum dolor sit amet consectetur adipisicing elit
   for some stupid reason the bottom corners fall up to the
   last thing in the div tag...
   ...but they might work now, I don't know...
   </font></div></div></div></div>
<font color="red">   </font><div class="clear"><font color="red">&nbsp;</font></div>
<font color="red">   </font></div>
<font color="red"><br>
</font><div style="background-color: rgb(0, 0, 0); width: 100%; height: 20px;" id="footer">
<font color="red">.  &copy; Crazyman47 &amp; Sparks 2011
</font></div>
</body></html>

/* No comment */

Offline

 

#5 2011-02-09 16:55:31

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: div tag help :(

use the border-radius and moz-border-radius properties. They work better.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#6 2011-02-09 19:17:22

00eek
Scratcher
Registered: 2010-01-23
Posts: 31

Re: div tag help :(

How Do U Create A New Forum?


smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile
R  E  M  I  X    R  E  M  I  X   R  E  M  I  X   R  E  M  I  X  !  !

Offline

 

#7 2011-02-09 19:24:10

agscratcher
Scratcher
Registered: 2009-07-09
Posts: 1000+

Re: div tag help :(

00eek wrote:

How Do U Create A New Forum?

What is this I don't even


http://narwhaler.com/img/yu/5/no-barrel-i-insist-after-you-spiderman-yU5Ua7.jpg

Offline

 

#8 2011-02-10 15:42:43

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: div tag help :(

waveOSBeta wrote:

use the border-radius and moz-border-radius properties. They work better.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#9 2011-02-10 16:33:31

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: div tag help :(

How do I apply them? ^


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#10 2011-02-11 16:52:05

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: div tag help :(

For firefox and all others:

Code:

#div {
moz-border-radius: 'radius';
border-radius: 'radius';
}

And may I suggest using an external CSS file? Much easier to manage.

Last edited by waveOSBeta (2011-02-11 16:52:51)


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#11 2011-02-14 10:11:37

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: div tag help :(

bump


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

Board footer