• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:37
CET 16:37
KST 00:37
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
SC2 All-Star Invitational: Jan 17-1816Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises2Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !11Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4
StarCraft 2
General
SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Chinese SC2 server to reopen; live all-star event in Hangzhou Starcraft 2 Zerg Coach ComeBackTV's documentary on Byun's Career !
Tourneys
OSC Season 13 World Championship WardiTV Mondays $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play
Brood War
General
I would like to say something about StarCraft BGH Auto Balance -> http://bghmmr.eu/ (UMS) SWITCHEROO *New* /Destination Edit/ What monitor do you use for playing Remastered? BW General Discussion
Tourneys
[BSL21] Grand Finals - Sunday 21:00 CET SLON Grand Finals – Season 2 [Megathread] Daily Proleagues [BSL21] LB SemiFinals - Saturday 21:00 CET
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Awesome Games Done Quick 2026! Stormgate/Frost Giant Megathread Mechabellum
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas Survivor II: The Amazon Sengoku Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Canadian Politics Mega-thread The Games Industry And ATVI 12 Days of Starcraft
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Ghostwriting Services for Authors and Businesses The Automated Ban List TL+ Announced
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1224 users

beginner need help with basic CSS

Blogs > emucxg
Post a Reply
emucxg
Profile Blog Joined May 2007
Finland4559 Posts
Last Edited: 2011-11-15 18:29:11
November 15 2011 18:00 GMT
#1
Fixed.


Im learning some HTML/CSS, again^^. and I found a problem... I googled for like an hour but still cant find answer -.-

Im trying to print a simple text with top and bottom border:

So, this is what I want:

[image loading]

Here is the code
html:
 <body>
<h1>CSS border property example</h1>
</body>


css:
 h1 {
border-top-width: 1px;
border-right-width: 0px;
border-bottom-width: 1px;
border-left-width: 0px;
border-style: solid;
}


however the result is this, which is not what I want:
[image loading]


like u can see the lengths of borders are way too long, I know I can fix this by using the <table> element instead of <h1>, but i wanna know how can I fix this without touching the html code? I guess I need some magic to my CSS file T.T

halp =(

ps. Fixed... thanks everyone

*****
tofucake
Profile Blog Joined October 2009
Hyrule19185 Posts
November 15 2011 18:16 GMT
#2
use overline and underline instead of borders
Liquipediaasante sana squash banana
emucxg
Profile Blog Joined May 2007
Finland4559 Posts
Last Edited: 2011-11-15 18:20:19
November 15 2011 18:17 GMT
#3
On November 16 2011 03:16 tofucake wrote:
use overline and underline instead of borders

THX
I love you!!
Kiss <3

noob question again, How can I change the color of underline?
Blazinghand *
Profile Blog Joined December 2010
United States25557 Posts
November 15 2011 18:24 GMT
#4
I thought this was going to be someone asking for Sc2 help and I was like "yayyyyy i'm going to help"

I saw a screenshot with some computer-ey stuff and was like "oh, clearly he's having trouble installing, I can still help"

then I read the post. D: I can't help, sorry.
When you stare into the iCCup, the iCCup stares back.
TL+ Member
emucxg
Profile Blog Joined May 2007
Finland4559 Posts
November 15 2011 18:26 GMT
#5
OK, I fixed this.^^

here is the solution if someone is curious:


h1 {
display: inline;
border-bottom:1px solid black;
border-top:1px solid black;
}
Moff
Profile Joined August 2008
United Kingdom166 Posts
Last Edited: 2011-11-15 18:28:58
November 15 2011 18:28 GMT
#6
It's doing that because the h1 is a block level element, add:

display: inline;


to the CSS, or additionally set a width on the element:

width: 400px;


See you fixed already! :p
WickedSkies
Profile Blog Joined August 2011
Netherlands81 Posts
November 15 2011 19:44 GMT
#7
Another helpful thing might be to use firebug or chrome console (F12) so you can edit your javascript/css directly on the css declaration in the page (no need to refresh and seems more intuitive at least to me).
Drone chasing probe, Tasteless quietly watching (Artosis)
Please log in or register to reply.
Live Events Refresh
Platinum Heroes Events
12:00
PSC2L Finals - Playoffs
Nicoract vs Creator
RotterdaM695
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SKillous 51
MindelVK 36
DivinesiaTV 18
StarCraft: Brood War
Britney 44510
Shuttle 1629
GuemChi 1518
EffOrt 1299
Stork 771
Soma 744
Horang2 651
Snow 459
Jaedong 412
ggaemo 392
[ Show more ]
hero 298
actioN 216
Sharp 165
Barracks 130
sorry 75
Sea.KH 50
Rock 42
Leta 41
Aegong 41
ToSsGirL 29
JYJ 26
Sexy 20
yabsab 19
scan(afreeca) 16
ajuk12(nOOB) 15
GoRush 13
Noble 9
Shine 7
Dota 2
qojqva1337
syndereN1139
XcaliburYe532
Fuzer 314
febbydoto24
League of Legends
C9.Mang0491
Heroes of the Storm
Khaldor123
Other Games
Grubby5189
Gorgc3327
B2W.Neo2124
RotterdaM695
DeMusliM658
hiko567
Hui .388
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• naamasc256
• HeavenSC 50
• Adnapsc2 29
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 11
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV703
Upcoming Events
OSC
21h 24m
Korean StarCraft League
1d 11h
OSC
1d 20h
IPSL
1d 22h
Dewalt vs Bonyth
OSC
2 days
OSC
2 days
uThermal 2v2 Circuit
2 days
Replay Cast
3 days
Patches Events
4 days
Liquipedia Results

Completed

C-Race Season 1
WardiTV 2025
META Madness #9

Ongoing

IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025

Upcoming

Escore Tournament S1: W2
CSL 2025 WINTER (S19)
Escore Tournament S1: W3
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Thunderfire SC2 All-star 2025
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
Underdog Cup #3
NA Kuram Kup
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.