• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:04
CET 11:04
KST 19:04
  • 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 Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA16
StarCraft 2
General
SC: Evo Complete - Ranked Ladder OPEN ALPHA Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge RSL Season 3: RO16 results & RO8 bracket RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
soO on: FanTaSy's Potential Return to StarCraft What happened to TvZ on Retro? Data analysis on 70 million replays 2v2 maps which are SC2 style with teams together? BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Path of Exile Nintendo Switch Thread Should offensive tower rushing be viable in RTS games? Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread
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
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1345 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
Hyrule19161 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 States25555 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
OSC
09:00
OSC Elite Rising Star #17
CranKy Ducklings83
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 169
ProTech127
StarCraft: Brood War
Rain 3465
actioN 2734
GuemChi 1765
Shuttle 824
Soulkey 784
Larva 640
firebathero 539
Soma 342
Stork 320
Hyun 242
[ Show more ]
BeSt 229
Yoon 227
Pusan 216
Zeus 197
Killer 172
Leta 152
Light 123
Sharp 116
Free 58
FanTaSy 51
Rush 41
Sea 41
zelot 38
Aegong 27
Terrorterran 21
ZerO 15
Noble 13
Hm[arnc] 9
SilentControl 7
Dota 2
XcaliburYe177
NeuroSwarm100
League of Legends
JimRising 569
Counter-Strike
olofmeister1776
shoxiejesuss454
allub159
Other Games
summit1g17071
ceh9698
Fuzer 181
ZerO(Twitch)2
Organizations
Other Games
gamesdonequick645
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• LUISG 27
• Adnapsc2 5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV148
League of Legends
• Rush1823
Upcoming Events
Wardi Open
1h 56m
Monday Night Weeklies
6h 56m
OSC
12h 56m
Wardi Open
1d 1h
Replay Cast
1d 22h
Wardi Open
2 days
OSC
2 days
Tenacious Turtle Tussle
2 days
The PondCast
2 days
Replay Cast
3 days
[ Show More ]
OSC
4 days
LAN Event
4 days
Replay Cast
4 days
Replay Cast
4 days
Sparkling Tuna Cup
5 days
Replay Cast
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
META Madness #9
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
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.