• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:00
CEST 14:00
KST 21: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
Maestros of the Game: Week 1/Play-in Preview10[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy13
Community News
LiuLi Cup - September 2025 Tournaments2Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris48Weekly Cups (Aug 11-17): MaxPax triples again!15
StarCraft 2
General
Maestros of the Game: Week 1/Play-in Preview Team Liquid Map Contest #21 - Presented by Monster Energy Weekly Cups (August 25-31): Clem's Last Straw? Heaven's Balance Suggestions (roast me) Geoff 'iNcontroL' Robinson has passed away
Tourneys
RSL: Revival, a new crowdfunded tournament series Maestros of The Game—$20k event w/ live finals in Paris LiuLi Cup - September 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond) Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
External Content
Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies
Brood War
General
ASL20 General Discussion BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Buy Oxycontin, Xanax, Adderall, Rivotril, Adipex, Pros React To: herO's Baffling Game
Tourneys
Is there English video for group selection for ASL [Megathread] Daily Proleagues Small VOD Thread 2.0 [ASL20] Ro24 Group F
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Warcraft III: The Frozen Throne
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread YouTube Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
Collective Intelligence: Tea…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1106 users

html css div help tt

Blogs > alffla
Post a Reply
1 2 3 Next All
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
Croatia9510 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
Hyrule19083 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.
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
RSL Revival
10:00
Season 2: Group B
Reynor vs Astrea
Classic vs sOs
Crank 1467
Tasteless966
IndyStarCraft 176
Rex95
3DClanTV 69
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Crank 1467
Tasteless 966
IndyStarCraft 176
Rex 95
StarCraft: Brood War
Britney 37833
PianO 5620
Sea 4088
Rain 3237
Bisu 1713
Jaedong 1357
GuemChi 836
Shuttle 799
Soulkey 461
BeSt 443
[ Show more ]
actioN 421
EffOrt 292
Light 236
Larva 210
Mong 205
Hyuk 174
Snow 169
ZerO 169
Mini 149
Barracks 139
Hyun 129
Soma 113
ggaemo 109
TY 89
Mind 83
Dewaltoss 75
Pusan 73
Liquid`Ret 62
ToSsGirL 49
JYJ45
sSak 41
Sea.KH 30
Nal_rA 28
scan(afreeca) 21
Sharp 20
Noble 17
Free 17
HiyA 16
Icarus 16
Sacsri 15
sorry 14
ajuk12(nOOB) 9
Bale 9
SilentControl 8
Dota 2
The International53691
Gorgc9213
Fuzer 257
XaKoH 212
XcaliburYe133
League of Legends
JimRising 325
Counter-Strike
shoxiejesuss854
zeus450
Stewie2K135
oskar67
edward36
Other Games
singsing1270
B2W.Neo977
crisheroes419
QueenE29
MindelVK24
ToD22
ZerO(Twitch)17
ArmadaUGS6
hiko0
Organizations
StarCraft: Brood War
UltimateBattle 109
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1016
Upcoming Events
Maestros of the Game
5h
Serral vs Ryung
ByuN vs Zoun
BSL Team Wars
7h
Team Bonyth vs Team Dewalt
CranKy Ducklings
22h
RSL Revival
22h
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
1d 2h
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
1d 5h
Solar vs Bunny
Clem vs Rogue
[BSL 2025] Weekly
1d 6h
RSL Revival
1d 22h
Cure vs Bunny
Creator vs Zoun
Maestros of the Game
2 days
Maru vs Lambo
herO vs ShoWTimE
BSL Team Wars
2 days
Team Hawk vs Team Sziky
[ Show More ]
Sparkling Tuna Cup
2 days
Monday Night Weeklies
3 days
The PondCast
5 days
Online Event
7 days
Liquipedia Results

Completed

Proleague 2025-09-02
SEL Season 2 Championship
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025: Warsaw LAN
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
EC S1
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #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 © 2025 TLnet. All Rights Reserved.