• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:23
CET 23:23
KST 07:23
  • 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
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Blizzard Classic Cup - Tastosis announced as captains6Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18BSL Season 224Vitality ends partnership with ONSYDE20
StarCraft 2
General
Blizzard Classic Cup - Tastosis announced as captains GSL CK - New online series Weekly Cups (March 2-8): ByuN overcomes PvT block Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza Vitality ends partnership with ONSYDE
Tourneys
[GSL CK] Team Maru vs. Team herO WardiTV Team League Season 10 Master Swan Open (Global Bronze-Master 2) RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
ASL21 General Discussion Gypsy to Korea BGH Auto Balance -> http://bghmmr.eu/ Recent recommended BW games BSL 22 Map Contest — Submissions OPEN to March 10
Tourneys
[Megathread] Daily Proleagues IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8 BWCL Season 64 Announcement
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
PC Games Sales Thread Nintendo Switch Thread Path of Exile No Man's Sky (PS4 and PC) Stormgate/Frost Giant Megathread
Dota 2
Official 'what is Dota anymore' discussion 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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Mexico's Drug War Things Aren’t Peaceful in Palestine YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1532 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
Hyrule19193 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 States25558 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 11h 37m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Liquid`TLO 306
White-Ra 207
SpeCial 60
ViBE57
ROOTCatZ 27
CosmosSc2 22
StarCraft: Brood War
Artosis 284
Aegong 46
LancerX 19
NaDa 18
IntoTheRainbow 12
Counter-Strike
byalli650
Pyrionflax182
Super Smash Bros
AZ_Axe10
Heroes of the Storm
Liquid`Hasu476
Other Games
summit1g10653
Grubby2524
FrodaN776
shahzam607
shoxiejesuss316
C9.Mang0136
ArmadaUGS93
KnowMe73
Mew2King29
Organizations
Other Games
gamesdonequick1930
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 53
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21136
League of Legends
• Doublelift4644
• TFBlade1251
Other Games
• imaqtpie1122
• Shiphtur137
Upcoming Events
The PondCast
11h 37m
WardiTV Team League
13h 37m
Replay Cast
1d 1h
Replay Cast
2 days
CranKy Ducklings
2 days
RSL Revival
2 days
WardiTV Team League
2 days
uThermal 2v2 Circuit
2 days
BSL
2 days
Sparkling Tuna Cup
3 days
[ Show More ]
RSL Revival
3 days
WardiTV Team League
3 days
BSL
3 days
Replay Cast
4 days
Replay Cast
4 days
Wardi Open
4 days
Monday Night Weeklies
4 days
WardiTV Team League
5 days
GSL
6 days
Liquipedia Results

Completed

Proleague 2026-03-10
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
Proleague 2026-03-11
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
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.