Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 23:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HTML bekomme link nicht auseinander

Discussion on HTML bekomme link nicht auseinander within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Mogile's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 495
Received Thanks: 61
HTML bekomme link nicht auseinander

Hallo

Kann mir jemand helfen. Bei meiner website bekomme ich die einzelnen links nicht weiter auseinander. Wenn ich die seite öffne, sind die alle so zusammen und haben nur wenig abstand


Index seite wo die links zu nah sind

Code:
 <div id="Navigation">
     <a href="index.html">Index</a>
     <a href="ueber_mich.html">Über mich</a>
     <a href="mein_praktikum.html">mein Praktikum</a>
     <a href="mein_praktikumbetrieb.html">mein Praktikumbetrieb</a>
 </div>
css

Code:
a:link {text-decoration: none; color:#575757}
a:visited {text-decoration: none; color:#575757}
a:hover {text-decoration: none; background-color: #19C61F;}
a:active {text-decoration:none; background-color: #efefef}

#Navigation {text-align: center; font-size: 100%; padding-bottom: 10px}
Mogile is offline  
Old 03/11/2015, 22:59   #2
 
Dantox's Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 228
Received Thanks: 45
Benutz am besten eine "unordered list" kurz "ul". Du packst die einzelnen Punkte dann in <li>-Elemente und kannst die Liste dann mit CSS verändern.
Dantox is offline  
Old 03/11/2015, 23:13   #3
 
elite*gold: 0
Join Date: Jan 2014
Posts: 65
Received Thanks: 5
Quote:
Originally Posted by Mogile View Post
Hallo

Kann mir jemand helfen. Bei meiner website bekomme ich die einzelnen links nicht weiter auseinander. Wenn ich die seite öffne, sind die alle so zusammen und haben nur wenig abstand


Index seite wo die links zu nah sind

Code:
 <div id="Navigation">
     <a href="index.html">Index</a>
     <a href="ueber_mich.html">Über mich</a>
     <a href="mein_praktikum.html">mein Praktikum</a>
     <a href="mein_praktikumbetrieb.html">mein Praktikumbetrieb</a>
 </div>
css

Code:
a:link {text-decoration: none; color:#575757}
a:visited {text-decoration: none; color:#575757}
a:hover {text-decoration: none; background-color: #19C61F;}
a:active {text-decoration:none; background-color: #efefef}
HTML Code:
#Navigation a {margin-right: xpx}
checkhaa is offline  
Old 03/11/2015, 23:15   #4
 
ArgonQQ's Avatar
 
elite*gold: 1003
Join Date: May 2011
Posts: 690
Received Thanks: 107
dir weiter helfen!

LG TheArgon
ArgonQQ is offline  
Old 03/12/2015, 00:56   #5
dotCom
 
Devsome's Avatar
 
elite*gold: 12400
The Black Market: 104/0/0
Join Date: Mar 2009
Posts: 15,879
Received Thanks: 4,385
Quote:
Originally Posted by Mogile View Post
Hallo

Kann mir jemand helfen. Bei meiner website bekomme ich die einzelnen links nicht weiter auseinander. Wenn ich die seite öffne, sind die alle so zusammen und haben nur wenig abstand


Index seite wo die links zu nah sind

Code:
 <div id="Navigation">
     <a href="index.html">Index</a>
     <a href="ueber_mich.html">Über mich</a>
     <a href="mein_praktikum.html">mein Praktikum</a>
     <a href="mein_praktikumbetrieb.html">mein Praktikumbetrieb</a>
 </div>
css

Code:
a:link {text-decoration: none; color:#575757}
a:visited {text-decoration: none; color:#575757}
a:hover {text-decoration: none; background-color: #19C61F;}
a:active {text-decoration:none; background-color: #efefef}

#Navigation {text-align: center; font-size: 100%; padding-bottom: 10px}
Nicht getestet aber eine möglichkeit wäre dies.


Code:
 <div id="Navigation">
     <a href="index.html" class="linkRight">Index</a>
     <a href="ueber_mich.html" class="linkRight">Über mich</a>
     <a href="mein_praktikum.html" class="linkRight">mein Praktikum</a>
     <a href="mein_praktikumbetrieb.html" class="linkRight">mein Praktikumbetrieb</a>
 </div>
Code:
a:link {text-decoration: none; color:#575757}
a:visited {text-decoration: none; color:#575757}
a:hover {text-decoration: none; background-color: #19C61F;}
a:active {text-decoration:none; background-color: #efefef}
.linkRight{
 padding-right: 15px;
/* or 
 padding-left: 15px;
*/
}
#Navigation {text-align: center; font-size: 100%; padding-bottom: 10px}
Devsome is offline  
Old 03/12/2015, 18:09   #6
 
c1rca12's Avatar
 
elite*gold: 36
Join Date: Dec 2008
Posts: 1,387
Received Thanks: 270
Dank HTML5 kannst du auch <nav> nutzen

c1rca12 is offline  
Old 03/12/2015, 20:25   #7

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Mach die Navigation als ul. Dann kannste die li's easy stylen.
Adroxxx is offline  
Old 03/12/2015, 20:45   #8
 
c1rca12's Avatar
 
elite*gold: 36
Join Date: Dec 2008
Posts: 1,387
Received Thanks: 270
Quote:
Originally Posted by Adroxxx View Post
Mach die Navigation als ul. Dann kannste die li's easy stylen.
Wenn man <nav> nutzt kann man li auch stylen
c1rca12 is offline  
Old 03/15/2015, 12:41   #9

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Quote:
Originally Posted by c1rca12 View Post
Wenn man <nav> nutzt kann man li auch stylen
Was du sagst ergibt leider keinen Sinn.
Der <nav> ist der semantische Tag für die Navigation. Der hat aber nichts mit Listen Item zu tun. Es ist zwar good practice semantische Tags zu benutzen,
aber der <nav> Tag, ersetzt in dem Fall einfach das <div id=navigation>.

Hilft aber keinesfalls, bessere Kontrolle über die einzelnen Menüelemente zu bekommen.

Hingegen, wenn man die Navigation als liste baut, hat man viel mehr Kontrolle über Position etc. der listen elemente.

Ob man die nun in den <nav> wrappt oder nicht, bleibt einem selbst überlassen.
Adroxxx is offline  
Old 03/15/2015, 14:53   #10
 
Hyukisawa's Avatar
 
elite*gold: 133
Join Date: May 2007
Posts: 506
Received Thanks: 194
Hier mal ein bsp. wie du es machen könntest
Hyukisawa is offline  
Reply


Similar Threads Similar Threads
HTML bekomme den text nicht in die mitte
03/06/2015 - Web Development - 4 Replies
Hallo Bin anfänger in html habe in diesem code css eingebunden, allerdings verändert sich nichts und alles bleibt links. Kann mir jemand helfen ? css datei <html> <head> <link href="stylesheet.css" type="text/css" rel="stylesheet"> <title>Praktikum</title> </head>
Html...Link
02/08/2010 - Web Development - 2 Replies
Hallo Leute Hab eine Frage Wie kann ich bei html einen Link in einem Text bringen wäre echt dankbar Danke :D sry wens falsche Sektion ist wusste nciht wo das rein kommt :S
[TUT] wie bekomme ich viele link aufrufe?
11/21/2008 - Tutorials - 7 Replies
Hier ist ein Programm und ein Tut mit dem ihr viele Klicks in kurzer zeit bekommt. http://img508.imageshack.us/img508/8110/tutyc8.th .jpg download link: Datei-Upload.eu - Kostenlos Dateien wie Bilder Programme oder Archive hochladen und verteilen viel spaß damit :mofo:



All times are GMT +2. The time now is 23:24.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.