• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:00
CEST 13:00
KST 20:00
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL21] Finals Preview: Two Legacies18Code S Season 2 (2026) - RO12 Preview2herO wins GSL Code S Season 1 (2026)5Code S Season 1 (2026) - RO4 & Finals Preview5[ASL21] Ro4 Preview: On Course12
Community News
Crank Gathers Season 4: BW vs SC2 Team League0Weekly Cups (May 11-17): Classic wins double0Code S Season 1 (2026) - RO8 Results2Weekly Cups (May 4-10): Clem, MaxPax, herO win1Maestros of The Game 2 announcement and schedule !18
StarCraft 2
General
herO wins GSL Code S Season 1 (2026) Code S Season 2 (2026) - RO12 Preview Weekly Cups (May 11-17): Classic wins double Code S Season 1 (2026) - RO4 & Finals Preview Team Liquid Map Contest #22 - The Finalists
Tourneys
GSL Code S Season 2 (2026) Crank Gathers Season 4: BW vs SC2 Team League GSL Code S Season 1 (2026) Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game 2 announcement and schedule !
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 527 Hell Train The PondCast: SC2 News & Results Mutation # 526 Rubber and Glue Mutation # 525 Wheel of Misfortune
Brood War
General
VPN experiences vespene.gg — BW replays in browser 25 Years Since Brood War Patch 1.08 (Spoiler) ASL21 Winner's Interview [ASL21] Finals Preview: Two Legacies
Tourneys
[ASL21] Grand Finals Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Any training maps people recommend? Muta micro map competition [G] Hydra ZvZ: An Introduction Fighting Spirit mining rates
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread Warcraft III: The Frozen Throne
Dota 2
The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Trading/Investing Thread European Politico-economics QA Mega-thread YouTube Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software)
TL Community
The Automated Ban List
Blogs
Esports Organizations: Raisi…
TrAiDoS
Why RTS gamers make better f…
gosubay
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1456 users

html css div help tt

Blogs > alffla
Post a Reply
Normal
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 10:22:30
May 06 2011 10:21 GMT
#1
omfg so i have this assignemnt to make a freaking webpage shitty style with photoshop slicing right. and also using dreamweaver cuz i suck shit.

so ok the basic deisgn is like this

[image loading]

but then i have no fuckin idea how to put text over the 'content box' on the right side, that is also transparent so it shows the texture.

at first i thought i was saved when i found the AP div tag.

but when i div align=centered the rest of the shit the ap tag got fucked so i m liekr ADSKFJASDFKLASDF

then i found this tutorial from the adobe dreamweaver site that shows how to build a basic site with CSS and div tags. < http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt2.html >

but then sincem y site isn't exactly the same im now stuck and stressed as shit ahhaha fml

would really appreciate if someone with webdesign knowledge could help me out.

right now my site is looking like this:

HOW CAN I MOVE THAT box to the right side? fml.
[image loading]

and also how do i place transparent text box over it afterwrads...

-_-; sigh

Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
2Pacalypse-
Profile Joined October 2006
Croatia9538 Posts
May 06 2011 10:26 GMT
#2
Read CSS Positioning.

One example: http://www.w3schools.com/css/tryit.asp?filename=trycss_zindex
Moderator"We're a community of geniuses because we've found how to extract 95% of the feeling of doing something amazing without actually doing anything." - Chill
pgshock
Profile Joined March 2006
60 Posts
May 06 2011 10:33 GMT
#3
Your going to need something called a float as well as absolute/relative positioning

check out http://htmldog.com/ you can do it!
Its not the falling that kills you, its the stopping
dartoo
Profile Joined May 2010
India2889 Posts
May 06 2011 10:35 GMT
#4
Welcome to the world of web UI. Wait till you get to browser compatibility, especially IE6
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 10:43 GMT
#5
On May 06 2011 19:33 pgshock wrote:
Your going to need something called a float as well as absolute/relative positioning

check out http://htmldog.com/ you can do it!


i've been trying to float the big 'text box' rectangle but it doesnt seem to want to move.. fml
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
May 06 2011 10:47 GMT
#6
fuck IE6 :< I'm always FML when I start on it

Anyways @OP
If I read your post correctly then you just inserted an image in your div with the content image am I right?

You should use CSS to use it as a background without repeating the image.
Then you can just add text in that div with the background image.

And use float for both div in which the navigation and the content is in.
Use another div beneath the navigation and content div to clear since you almost always want to use clear after using floated divs.

So key words are which you should look up at w3schools (linked above by 2pac as well) which will probably what you want:

CSS float
CSS clear
CSS background

I guess that's it :p

From a webdesign perspective. I don't like it that you used a box as content. Because now you will have limited space in a div unless you use overflow but then it'll make it ugly as you'll see scroll bars in the content div.

Happy to give some advice and hope it helped :p
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
Last Edited: 2011-05-06 10:51:10
May 06 2011 10:48 GMT
#7
On May 06 2011 19:43 alffla wrote:
Show nested quote +
On May 06 2011 19:33 pgshock wrote:
Your going to need something called a float as well as absolute/relative positioning

check out http://htmldog.com/ you can do it!


i've been trying to float the big 'text box' rectangle but it doesnt seem to want to move.. fml

You need to float the left div as well. There's no point to float the content box if the navigation isn't floated in your case.

And make sure that both div (navigation and content) width are within the limit you've specified. If it's in body then u won't need to specify but if you placed navigation and content div in another div which has a specified limit then the accumalitive width of navigation + content should be within that limit).
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 10:56:15
May 06 2011 10:52 GMT
#8
ok ok ok shannn thanks for hte help atm.

so basicallyh each of the pencils are in their own individual divs. when i float: left; they go all weird as well scattering everywhere. i've been searching all this css stuff as well ..

haha oh yea the box is shitty cuz there's limited space but it doesnt matter, i have just to put some rnadom text in there its ok..

oh here's what happens when i float left >_ <

[image loading]

oh hm.. so are u suggesting i have to make a big div container for the navigation and tehn antoher one for the content box?
OH SHIHIH epihphany
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
May 06 2011 10:54 GMT
#9
On May 06 2011 19:52 alffla wrote:
ok ok ok shannn thanks for hte help atm.

so basicallyh each of the pencils are in their own individual divs. when i float: left; they go all weird as well scattering everywhere. i've been searching all this css stuff as well ..

haha oh yea the box is shitty cuz there's limited space but it doesnt matter, i have just to put some rnadom text in there its ok..

oh here's what happens when i float left >_ <

[image loading]

You need to put the navigation div's in 1 div and float that div and not each individual navigation div.
THen your set to fine.
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 10:57 GMT
#10
On May 06 2011 19:54 shannn wrote:
Show nested quote +
On May 06 2011 19:52 alffla wrote:
ok ok ok shannn thanks for hte help atm.

so basicallyh each of the pencils are in their own individual divs. when i float: left; they go all weird as well scattering everywhere. i've been searching all this css stuff as well ..

haha oh yea the box is shitty cuz there's limited space but it doesnt matter, i have just to put some rnadom text in there its ok..

oh here's what happens when i float left >_ <

[image loading]

You need to put the navigation div's in 1 div and float that div and not each individual navigation div.
THen your set to fine.


OH SHIT SOH SHIT SOHTHI sthanks man i can't believe i didnt htink of that before.
ok hhope i can figure out the code for that nowhahah
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 11:20 GMT
#11
ok man ok ok i'm sooo freaking cloes to making this work but somehow it doesn't wanna move up stairs. i made the #container to 801px and it did fly up but then there was a freaking 1px white gap between #navigationdiv and my #content when i did that.

how now!? :S thanks so much for the help btw shan
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
May 06 2011 11:26 GMT
#12
I need to look at your css. There can be many things that cause the 1px white line.

First things to think about :

- Have you calculated the width correctly? As in, are the navigation div and the content div 801px together?
- What happens if u set the container div to 800px?
- Have you setup a margin to one of the containers, or a border?
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
Rayonnair
Profile Joined October 2010
Singapore185 Posts
May 06 2011 11:26 GMT
#13
On May 06 2011 20:20 alffla wrote:
ok man ok ok i'm sooo freaking cloes to making this work but somehow it doesn't wanna move up stairs. i made the #container to 801px and it did fly up but then there was a freaking 1px white gap between #navigationdiv and my #content when i did that.

how now!? :S thanks so much for the help btw shan


Did you check whether margins and padding are at 0 0 0 0?
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
Last Edited: 2011-05-06 11:36:26
May 06 2011 11:35 GMT
#14
It's best to look at what the width of each image is.
If your image is smaller than the width of the div you specified then it can cause that 1px white cap.

Example:

#containerdiv {
width:800px;
}
#navigationdiv{
width:250px;
}
#navigation img (the pencil images){
width:250px;
}
#contentdiv{
width:550px;
}
#content img{
width:500px;
}

The above code would make 50px white space in the content div. If you aligned your content image to center then that would mean 25px white space on both sides in the content div.

If your contentdiv is 1px bigger than your image then it can cause the 1px white space.
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 11:45 GMT
#15
oh HSITT omgomg can't believe i made a mistake with the image width for nav bar.. lOL omg -_- i feel so stupid i wouljdn't make such a mistake with other things

thanks for the reminder to check everything though

okkkkk AWESOME IT ALL FITS TOGETHER NOW

now to place content in the box..
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
Last Edited: 2011-05-06 11:55:26
May 06 2011 11:53 GMT
#16
The way I see in that picture including the css. You've just inserted an image in a div.
That way you're making things harder for yourself to place content over that image as you'll need some complicated things like using z-index etc which just looks ugly.

You need to remove the image in HTML in the content div.
Instead use CSS to attach a background onto the content div.

So it'll look like this.

html > body #contentdiv{
height:auto;
min-height:minimal height when the page loads;
}
#contentdiv {
background:url('your/path/to/image.jpg') no-repeat 0 0;
width:somethingpx;
height:should be same height as specified above;
}

This way you can just put text in #contentdiv while it appears to be written on top of the image.

Further clarifcation on the background css.
No-repeat means that the image will not be repeated in any way (horizontal or vertically or both) when the div gets bigger in height than is specified.
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 11:54 GMT
#17
ACK

Dreamweaver is the devil. And Photoshop's slice markup isn't much better T.T

Anyway, you can just use a single image for the background and use maps and divs for content positioning. No need to slice anything.
Liquipediaasante sana squash banana
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
May 06 2011 12:04 GMT
#18
On May 06 2011 20:54 tofucake wrote:
ACK

Dreamweaver is the devil. And Photoshop's slice markup isn't much better T.T

Anyway, you can just use a single image for the background and use maps and divs for content positioning. No need to slice anything.

Yes you can do that but if he wants to use hovers on the navigation items (example) then having a single background will make it impossible to do so.

It's still preference but using a single image as background will just limit the possibilities which u don't want if you are thinking of adding new features in the future or change some image.
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 12:14:35
May 06 2011 12:12 GMT
#19
oo ok sweet yea i got that background thing done now haha :D
haha tofucake im so far down this road i can't turn back now >_>

its possible to have a scroll bar inside the contentdiv right ? :O

and its easy to embed content inside?
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
Last Edited: 2011-05-06 12:23:06
May 06 2011 12:18 GMT
#20
On May 06 2011 21:12 alffla wrote:
oo ok sweet yea i got that background thing done now haha :D
haha tofucake im so far down this road i can't turn back now >_>

its possible to have a scroll bar inside the contentdiv right ? :O

and its easy to embed content inside?

To use scroll bar you gotta use overflow:hidden; in the content div with the attached background image.
This way you'll need to set a specific height for the content div.
Then in HTML you just set content or other images in the content div. This way when you get more text it will show the scroll bar else it will just show the image.

Sorry it's overflow:scroll;
overflow:hidden; is without scroll and without having text spring outside the div and scroll is the same as hidden except it has a scroll bar :p
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
FranzP
Profile Joined November 2010
France270 Posts
May 06 2011 12:21 GMT
#21
I guess for the content you can just put padding top et left so that your text is placed properly inside your image and what shaannn said put your image as a background in the css image and write in the div.

It's totally possible to have a scroll bar in the content div. Just fixed its size with a height attribute in the css, maybe you'll have to toy with the overflow attribut in your style.

And one more advice. Don't use ids for all your div (or others) use classes when you have one style for many different elements.
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 12:21 GMT
#22
ohh omg awesome i can't think you enough for all the help :D::D:D
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
May 06 2011 12:21 GMT
#23
I think a content box like in your image is a bad idea. Especially with only the box content scrolling. I'd rather make the high of the box adapt to the amount of content in it, and then scroll the whole page.
LiquipediaOne eye to kill. Two eyes to live.
FranzP
Profile Joined November 2010
France270 Posts
May 06 2011 12:22 GMT
#24
On May 06 2011 21:18 shannn wrote:
Show nested quote +
On May 06 2011 21:12 alffla wrote:
oo ok sweet yea i got that background thing done now haha :D
haha tofucake im so far down this road i can't turn back now >_>

its possible to have a scroll bar inside the contentdiv right ? :O

and its easy to embed content inside?

To use scroll bar you gotta use overflow:hidden; in the content div with the attached background image.
This way you'll need to set a specific height for the content div.
Then in HTML you just set content or other images in the content div. This way when you get more text it will show the scroll bar else it will just show the image.


overflow:hidden will hide the scroll bar, didn't you mean overflow:auto.
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
FranzP
Profile Joined November 2010
France270 Posts
May 06 2011 12:25 GMT
#25
On May 06 2011 21:21 MasterOfChaos wrote:
I think a content box like in your image is a bad idea. Especially with only the box content scrolling. I'd rather make the high of the box adapt to the amount of content in it, and then scroll the whole page.


Yeah but you can't stretch your background image for that you have to divide your image in three. One top part one middle part set on repeat-y and the bottom part. And with the irregular left and right border it can be a pain in the ass...
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
Last Edited: 2011-05-06 12:29:25
May 06 2011 12:28 GMT
#26
On May 06 2011 21:22 FranzP wrote:
Show nested quote +
On May 06 2011 21:18 shannn wrote:
On May 06 2011 21:12 alffla wrote:
oo ok sweet yea i got that background thing done now haha :D
haha tofucake im so far down this road i can't turn back now >_>

its possible to have a scroll bar inside the contentdiv right ? :O

and its easy to embed content inside?

To use scroll bar you gotta use overflow:hidden; in the content div with the attached background image.
This way you'll need to set a specific height for the content div.
Then in HTML you just set content or other images in the content div. This way when you get more text it will show the scroll bar else it will just show the image.


overflow:hidden will hide the scroll bar, didn't you mean overflow:auto.

Ya I didn't meant hidden. Auto is best to use but if he wants scroll bar then scroll it is.

I said the same thing like Master to not use that content image box.
It's best to use some separate divs in which u have 3 divs (1 for the top border, 1 for the content and 1 for the bottom). So that when you have more text then the box will just automatically resize to the amount of text you have and then you won't need to use overflow.

On May 06 2011 21:25 FranzP wrote:
Show nested quote +
On May 06 2011 21:21 MasterOfChaos wrote:
I think a content box like in your image is a bad idea. Especially with only the box content scrolling. I'd rather make the high of the box adapt to the amount of content in it, and then scroll the whole page.


Yeah but you can't stretch your background image for that you have to divide your image in three. One top part one middle part set on repeat-y and the bottom part. And with the irregular left and right border it can be a pain in the ass...

Haven't seen the image in detail but if it's irregular then it won't work :D
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
FranzP
Profile Joined November 2010
France270 Posts
Last Edited: 2011-05-06 12:34:15
May 06 2011 12:32 GMT
#27
edit (that part is useless ^^) : Yeah but in that case you'll have a 1px high middle image for continuity and you can't have irregular border without doing something complicated. Unless I'm missing a way to make repeat-y continuous with big image or something.

Well the content div is the div with box with irregular border no ? Or I missed something

overflow:scroll will always show the scroll even if there is nothing to scroll for.
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
May 06 2011 12:55 GMT
#28
On May 06 2011 21:32 FranzP wrote:
edit (that part is useless ^^) : Yeah but in that case you'll have a 1px high middle image for continuity and you can't have irregular border without doing something complicated. Unless I'm missing a way to make repeat-y continuous with big image or something.

Well the content div is the div with box with irregular border no ? Or I missed something

overflow:scroll will always show the scroll even if there is nothing to scroll for.

I just thought of a normal border and didn;t look at the image that specifically at the borders when I wrote my post which MasterofChaos probably did the same.

And yes I'm aware of the scroll part so I just didn't think things through so I just said scroll.
I did say that auto is best though :p
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
emucxg
Profile Blog Joined May 2007
Finland4559 Posts
May 06 2011 13:47 GMT
#29
http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt2.html

the link u gave us is pretty awsome l0l
FranzP
Profile Joined November 2010
France270 Posts
Last Edited: 2011-05-06 14:11:09
May 06 2011 14:10 GMT
#30
By the way w3school is not really a reference for css. Not saying it's a bad website but it's not a reference (see http://w3fools.com/ for some corrections on w3school content)
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 14:14 GMT
#31
hmm haha wow so much feedback in my blog now thanks guys ;D:D:

hm.. so how would i go about making a dynamic content box that enlarges itself depending on how much content i put in? :S that would be even more awesome but i'm afraid i have no idea how to make it ..

wouldn't i need a repeating tile pattern for the background to expand on and everything :S
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 14:21 GMT
#32
On May 06 2011 21:12 alffla wrote:
oo ok sweet yea i got that background thing done now haha :D
haha tofucake im so far down this road i can't turn back now >_>

its possible to have a scroll bar inside the contentdiv right ? :O

and its easy to embed content inside?


overflow: auto;
or
overflow: scroll;

Either would work. Example:

/* menu stuff */

#content
{
position: absolute;
left: 150px;
top: 200px;
width: 400px;
height: 800px;
overflow: auto;
}


<div id="menustuff"> <!-- menu stuff here etc --></div>
<div id="content">
<!-- CONTENT HERE -->
</div>


Obviously you'd have to adjust the positions and sizes, but it's fairly easy.
Liquipediaasante sana squash banana
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 14:30 GMT
#33
On May 06 2011 23:14 alffla wrote:
hmm haha wow so much feedback in my blog now thanks guys ;D:D:

hm.. so how would i go about making a dynamic content box that enlarges itself depending on how much content i put in? :S that would be even more awesome but i'm afraid i have no idea how to make it ..

wouldn't i need a repeating tile pattern for the background to expand on and everything :S

Now that I've read further, no. You use more divs! For the upper and lower borders you use background-image: url('borderx.png'); backround-repeat: repeat-x; and similar for the vertical with repeat-y. For corners you can either overlap or you can have special corner pieces (if you need to).
Liquipediaasante sana squash banana
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 14:49:37
May 06 2011 14:40 GMT
#34
hhmm .. ok . well not really getting how that works right now but i'll think about it tonight, thanks

don't get why i need an upper border? wouldn't i just need a 'lower' section that repeats as it expands lower and lower? :S

and how do the corners work? shouldn't the 'borders' fill up the entire width anyway?

oh right you're talking about that box that i drew ohh i get it i think hahah :D:D:D
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 14:50 GMT
#35
If you have sharp corners, it's no problem. If you want rounded corners or something fancy like that, you have to use CSS3 (incomplete and not fully supported) or special corner images. If you want to have the expanding box box, you need to set the borders for the top and bottom so they stretch out accordingly, and the sides so they stretch vertically. You can also set min and max height and width values and an overflow: scroll to get the scroll when necessary, and to make sure stuff doesn't stretch the content box to insane sizes.
Liquipediaasante sana squash banana
Byte
Profile Joined April 2010
Germany11 Posts
May 06 2011 15:04 GMT
#36
On May 06 2011 19:47 shannn wrote:
fuck IE6 :< I'm always FML when I start on it

Anyways @OP
If I read your post correctly then you just inserted an image in your div with the content image am I right?

You should use CSS to use it as a background without repeating the image.
Then you can just add text in that div with the background image.

And use float for both div in which the navigation and the content is in.
Use another div beneath the navigation and content div to clear since you almost always want to use clear after using floated divs.

So key words are which you should look up at w3schools (linked above by 2pac as well) which will probably what you want:

CSS float
CSS clear
CSS background

I guess that's it :p

From a webdesign perspective. I don't like it that you used a box as content. Because now you will have limited space in a div unless you use overflow but then it'll make it ugly as you'll see scroll bars in the content div.

Happy to give some advice and hope it helped :p


^ that's how I would do it. Alternatively while you are reading up on positioning you schould come across something called a z-index. It allows you to have elements over top of one another.
Ganz oder garnicht! ps. I read you like a book!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 15:18 GMT
#37
hi

so basically this is how i should aarrange some new div images to repeat and expand? am i on the right track?

thanks, TL rocks man.

[image loading]
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
FranzP
Profile Joined November 2010
France270 Posts
May 06 2011 15:19 GMT
#38
<div class=contentTop>
</div>
<div class=content>
write your content here
</div>
<div class=bottom>
</div>


now the css :

.contentTop {
background-image:url(url to the top part of the background);
}
.content {
background-image:url(url to 1px high image that will repeat verticaly);
background-repeat:repeat-y;
padding-left:15px; //so that your text won't be on top of the border
}
.contentBottom {
background-image:url(url to the bottom part of the background);
}


With this your content box will bea extendable but you won't be able to have irregular border on the right side and the left side.
"Cyberhacking is kind of like masturbation I guess, all countries do it but nobody actually talks about it. China just was accidentally doing it with the door wide open." Newbistic
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 15:29 GMT
#39
^ wow awesome thanks, i'm going to try that in a sec :D:D
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
emucxg
Profile Blog Joined May 2007
Finland4559 Posts
May 06 2011 15:30 GMT
#40
css is so much harder to read than java( or python or c++) l0l
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 15:47 GMT
#41
sorry, how would i expand the bit right under teh navigation menu so that it fits the expanding content box as well? :S cuz you see i have this drop shadow thing thats in a straight line..
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 15:53:45
May 06 2011 15:51 GMT
#42
no wait nvm
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 16:07 GMT
#43
The trickiest part of your layout is the non-uniform borders, which might make things look weird with odd heights/widths.
Liquipediaasante sana squash banana
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 16:09 GMT
#44
On May 07 2011 01:07 tofucake wrote:
The trickiest part of your layout is the non-uniform borders, which might make things look weird with odd heights/widths.


i decided to just make straight left and right edges to make it look ok..

i still don't know how to make the part under the bottom pencil expand along with the content box though~ :S
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
Last Edited: 2011-05-06 16:20:56
May 06 2011 16:18 GMT
#45
try min-height:100%;
for the menu container div, and the div inside it that's under the menu

the only problem with that is that it usually has to have a parent container element that has a specified height, which this one doesn't. xD
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 16:19 GMT
#46
On May 07 2011 01:18 quirinus wrote:
try min-height:100%;
for the menu container div, and the div inside it that's under the menu


that sounds like it's going to stretch it like hell? or what.. o_ o haha lemme try doing the content expanding thing first . sigh
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
May 06 2011 16:22 GMT
#47
it probably won't work. it should expand it to 100% of the screen height that contains the page. or more if there's more content than that.
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
tofucake
Profile Blog Joined October 2009
Hyrule19215 Posts
May 06 2011 16:27 GMT
#48
min-height works on the container and settings. Using min-height: 100% on a div inside another div which has a height of 800px will result in the inner div having a height of 800px as well.

Inception plot was stolen from CSS.
Liquipediaasante sana squash banana
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
Last Edited: 2011-05-06 16:31:41
May 06 2011 16:30 GMT
#49
On May 07 2011 01:27 tofucake wrote:
min-height works on the container and settings. Using min-height: 100% on a div inside another div which has a height of 800px will result in the inner div having a height of 800px as well.

Inception plot was stolen from CSS.


ah, didn't see he had a specified height for the container. it should work then.
but just use min-height:100%; for the div under the menu, don't use it for the container then.

lol inception. it's a div inside a div inside a div, and every one steals the rules from the previous one, but with a twist!
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
Cedstick
Profile Blog Joined November 2009
Canada3336 Posts
May 06 2011 16:50 GMT
#50
Un-related to your plight: is Dreamweaver still being updated and sold? Is there an alternate product that has become the standard? Thanks, and good luck with the site.
"What does Rivington do when he's not commentating?" "Drool." ~ Categorist
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 06 2011 16:50 GMT
#51
hahahhaha omg inception
shit man

lol im actually gettnig the hang of this css div shit , kinda awesome. my head feels explode-y though. too much information in a day .. :D
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
Peekay.switch
Profile Blog Joined May 2010
Canada285 Posts
May 06 2011 17:25 GMT
#52
On May 07 2011 01:50 alffla wrote:
hahahhaha omg inception
shit man

lol im actually gettnig the hang of this css div shit , kinda awesome. my head feels explode-y though. too much information in a day .. :D


Whatever you do, do not, I Repeat, Do not open your website in IE6.

Welcome to the world of web design!
Cool looking website btw
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 18:50:56
May 06 2011 18:44 GMT
#53
if anyones still around,

how the heck do i make this filler (the filler under the last pencil that says dsdsd) stretch to the bottom ?! >_> i put an image inside the navigation container div, is that the right thing to do? i tried height: 100%; didnt seem to do anything haha. and i read about some bottom: px; thing? but not sure what that is supposed to do . hmph.

[image loading]
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
Last Edited: 2011-05-06 19:31:33
May 06 2011 19:27 GMT
#54
perhaps i should stick my footer image div to the bottom of the page ? then somehow implement the sticky footer css that seems to be quite famous.. o_O

http://www.cssstickyfooter.com/non-stick-footer.html

then somehow make the filler space thing expand all the way to the top of the footer image...
-.-

ok too tired hope someone replies tmr. .ehe :D thanks so much for all the help everyone.
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
HorstSchlemmer
Profile Joined July 2010
Germany114 Posts
Last Edited: 2011-05-06 22:04:49
May 06 2011 22:03 GMT
#55
You want to do the exact same thing as with your border in the content box, you need to create an image with 1px height that repeats until you're at the bottom of the page.

So it's basically a variation of your .content:

.content {
background-image:url(url to 1px high image that will repeat verticaly);
background-repeat: repeat-y;
}
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 07 2011 02:58 GMT
#56
yea i did a repeat y but because there's no content in there it doesn't auto fill to the bottom of the page .. :\
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 07 2011 05:27 GMT
#57
oh man i've run into the problem of this too. if i have too little content in the content_rep div (the repeating texture) then there's a huge ass gap between the bottom of the content box and the bottom of the thingy.

FFFFFFFFFF

[image loading]
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
alffla
Profile Blog Joined November 2005
Hong Kong20321 Posts
May 07 2011 05:44 GMT
#58
actually nvm ,i added a backgroud to the overall container div LOL so it covers any missing space.
Graphicssavior[gm] : What is a “yawn” rape ;; Masumune - It was the year of the pig for those fucking defilers. Chill - A clinic you say? okum: SC without Korean yelling is like porn without sex. konamix: HAPPY BIRTHDAY MOMMY!
quirinus
Profile Blog Joined May 2007
Croatia2489 Posts
May 07 2011 20:06 GMT
#59
On May 07 2011 14:44 alffla wrote:
actually nvm ,i added a backgroud to the overall container div LOL so it covers any missing space.


yea, that's generally the technique.

any other problems or everything works now?
All candles lit within him, and there was purity. | First auto-promoted BW LP editor.
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 1m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Ryung 47
ProTech22
Rex 9
StarCraft: Brood War
Calm 5186
Hyuk 791
Jaedong 506
Larva 333
Mini 282
firebathero 235
EffOrt 206
actioN 192
Light 182
Pusan 175
[ Show more ]
Killer 173
Mind 161
BeSt 137
Soulkey 109
Rush 94
Sea.KH 65
ggaemo 63
Aegong 54
Sharp 47
scan(afreeca) 46
sorry 43
JulyZerg 33
ToSsGirL 33
Liquid`Ret 29
Shinee 27
[sc1f]eonzerg 19
Barracks 17
Movie 14
IntoTheRainbow 13
ajuk12(nOOB) 9
Noble 7
Mong 5
Dota 2
XaKoH 380
XcaliburYe84
Dendi11
Counter-Strike
olofmeister2567
shoxiejesuss1363
x6flipin289
allub183
byalli59
Other Games
B2W.Neo357
Lowko272
crisheroes267
Pyrionflax236
Organizations
Counter-Strike
PGL756
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• LUISG 52
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota262
League of Legends
• Jankos1968
Upcoming Events
Universe Titan Cup
1m
Rogue vs Percival
Wardi Open
1m
IntoTheiNu 68
Ryung 47
WardiTV34
Rex9
Monday Night Weeklies
5h 1m
Replay Cast
13h 1m
Kung Fu Cup
1d
GSL
1d 22h
herO vs Classic
Cure vs Clem
uThermal 2v2 Circuit
2 days
Replay Cast
2 days
GSL
2 days
Maru vs SHIN
Zoun vs Rogue
WardiTV Spring Champion…
3 days
SKillous vs Strange
Lambo vs Strange
Ryung vs Strange
Lambo vs Ryung
Ryung vs SKillous
Lambo vs SKillous
[ Show More ]
Replay Cast
3 days
Maestros of the Game
4 days
Replay Cast
4 days
RSL Revival
4 days
Lambo vs SHIN
Solar vs Rogue
herO vs Clem
IPSL
5 days
ZZZero vs WorsT
Julia vs eOnzErG
Replay Cast
5 days
RSL Revival
5 days
IPSL
6 days
Dragon vs Artosis
dxtr13 vs Hawk
BSL
6 days
Liquipedia Results

Completed

ASL Season 21
2026 GSL S1
Heroes Pulsing #1

Ongoing

2026 KK StarCraft Pro League
BSL Season 22
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
YSL S3
Acropolis #4
CSCL: Masked Kings S4
SCTL 2026 Spring
WardiTV Spring 2026
2026 GSL S2
RSL Revival: Season 5
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals

Upcoming

Escore Tournament S2: King of Kings
BSL 22 Non-Korean Championship
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
Bounty Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.