Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hi

Hab ne Webseite bei der ich mir ein CSS-File gemacht habe und die dort definierten Sachen immer mit

<div class="name">text...</div>

aufrufe. Dann macht der mir jedoch nach jedem </div> einen Zeilensprung rein auch wenn ich keien da haben will. Kann mir vielleciht jemand ssagen, wie ich das vermeiden kann? :rolleyes:

Bei mir funktioniert das:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Test</title>

<style type="text/css">

<!--

.d{font-family:"Arial"; color:blue;}

-->

</style>

</head>

<body>

<div class="d">text</div>

<div class="d">text</div>

<div class="d">text</div>

<div class="d">text</div>

</body>

</html>

Originally posted by CyberDemon

Bei mir funktioniert das...

Du bist lustich, was macht denn Dein Code? Doch wohl jedes "text" inne extra Zeile schreiben...

:marine

Originally posted by CyberDemon

Sorry!!!! Du wolltest ja keinen Zeilenumbruch. Ich hätte besser genauer lesen sollen.

Werde mich aber jetzt mal genauer um das Problem kümmern.

naja, hast es ja gemerkt :cool:
Originally posted by Crash2001

Also hat denn keiner ne Ahnung, wie man das umgehen könnte? :rolleyes:

Das einzige was mir z.Z. dazu einfällt wäre diese Möglichkeit:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">

<html>

<head>

<style type="text/css">

<!--

.name1{font-family:"Arial"; color:blue;}

.name2{font-family:"Helvetica"; color:green;}

-->

</style>

</head>

<body>

<table>

<tr>

 <td><div class="name1">text...</div> </td>

 <td><div class="name2">text...</div> </td>

</tr>

</table>

</body>

</html>

...glaube aber nicht, daß Du das so wolltest :(

sYmbol

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Test</title>

<style type="text/css">

<!--

.d{font-family:"Times New Roman"; color:blue;}

.v{font-family:"Times New Roman"; color:red;}

-->

</style>

</head>

<body>

<span class="d">text</span>

<span class="v">text</span>

<span class="d">text</span>

<span class="v">text</span>

</body>

</html>

Kannst Du bitte posten, ob es funktioniert hat? Thanx.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.