• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:05
CET 19:05
KST 03:05
  • 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
HomeStory Cup 28 - Info & Preview11Rongyi Cup S3 - Preview & Info3herO wins SC2 All-Star Invitational14SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8
Community News
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win0RSL Season 4 announced for March-April3Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win3Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8
StarCraft 2
General
Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win StarCraft 2 Not at the Esports World Cup 2026 HomeStory Cup 28 - Info & Preview Weekly Cups (Jan 19-25): Bunny, Trigger, MaxPax win Oliveira Would Have Returned If EWC Continued
Tourneys
HomeStory Cup 28 RSL Season 4 announced for March-April $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) KSL Week 85 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 511 Temple of Rebirth The PondCast: SC2 News & Results Mutation # 510 Safety Violation Mutation # 509 Doomsday Report
Brood War
General
Can someone share very abbreviated BW cliffnotes? Liquipedia.net NEEDS editors for Brood War BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion [ASL21] Potential Map Candidates
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 Azhi's Colosseum - Season 2 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Battle Aces/David Kim RTS Megathread Nintendo Switch Thread Path of Exile Mobile Legends: Bang Bang Beyond All Reason
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
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Let's Get Creative–Video Gam…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2024 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
Hyrule19192 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 55m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
UpATreeSC 173
JuggernautJason140
StarCraft: Brood War
Calm 2841
Rain 2407
Larva 407
BeSt 234
Shuttle 221
Mini 207
firebathero 120
Hyun 91
Aegong 35
Shine 24
[ Show more ]
soO 21
yabsab 21
Rock 20
Hm[arnc] 20
Shinee 19
910 13
GoRush 11
Dota 2
qojqva2877
singsing2121
syndereN569
BananaSlamJamma131
canceldota22
League of Legends
C9.Mang076
Counter-Strike
fl0m4641
olofmeister2008
adren_tv14
Heroes of the Storm
MindelVK21
Other Games
Grubby2924
B2W.Neo1003
FrodaN986
Beastyqt904
hiko894
QueenE198
ArmadaUGS101
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• kabyraGe 35
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• FirePhoenix17
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos3496
• TFBlade1193
• Shiphtur174
• imaqtpie43
Upcoming Events
Replay Cast
5h 55m
Wardi Open
17h 55m
PiGosaur Cup
1d 6h
WardiTV Invitational
1d 17h
Replay Cast
2 days
The PondCast
2 days
WardiTV Invitational
2 days
Replay Cast
3 days
RongYI Cup
4 days
uThermal 2v2 Circuit
5 days
[ Show More ]
Replay Cast
6 days
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

Proleague 2026-02-01
HSC XXVIII
Underdog Cup #3

Ongoing

CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Acropolis #4 - TS4
Proleague 2026-02-02
Rongyi Cup S3
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W7
Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
LiuLi Cup: 2025 Grand Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
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.