• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:29
CET 04:29
KST 12:29
  • 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
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)11Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns6[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3
StarCraft 2
General
Spontaneous hotkey change zerg Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
I would like to say something about StarCraft Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Awesome Games Done Quick 2026! Mechabellum Beyond All Reason Stormgate/Frost Giant Megathread General RTS Discussion Thread
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
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2289 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
Hyrule19188 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
Next event in 5h 31m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 207
Ketroc 47
FoxeR 5
StarCraft: Brood War
Artosis 850
Sharp 350
zelot 316
Bale 94
Shine 84
Sexy 61
ZergMaN 54
Noble 28
GoRush 17
Hm[arnc] 13
[ Show more ]
Icarus 5
Dota 2
monkeys_forever274
NeuroSwarm131
Counter-Strike
summit1g8954
fl0m4287
minikerr44
Other Games
tarik_tv6656
JimRising 528
KnowMe65
ViBE63
Liquid`Ken17
Organizations
Other Games
gamesdonequick5199
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 110
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 17
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Scarra1528
• Rush837
Upcoming Events
Replay Cast
5h 31m
Wardi Open
10h 31m
Monday Night Weeklies
13h 31m
WardiTV Invitational
1d 8h
WardiTV Invitational
2 days
The PondCast
3 days
OSC
3 days
OSC
4 days
All Star Teams
4 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
5 days
[ Show More ]
All Star Teams
5 days
MMA vs DongRaeGu
Rogue vs Oliveira
Sparkling Tuna Cup
6 days
OSC
6 days
Liquipedia Results

Completed

Proleague 2026-01-11
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
OSC Championship Season 13
Underdog Cup #3
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
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.