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.

background images ausrichtung?

Empfohlene Antworten

hi leute,

ich habe ein background image das 30x30 px groß ist.

dies habe ich in eine tabellenzelle eingebunden die auch 30x30 groß ist.

wieso ist das bild jetzt nicht genau 1:1 drinne, sonder verschiebt sich?

Gruß

kills



<table height="30" width="800px" cellspacing="0" cellpadding="0">

<tr height="30">

  <td width="300"></td>

  <td width="30" style="border-top: 1px solid; background-image: url('./pics/bg_el2.gif');background-repeat: no-repeat;">

  <img height="30" width="30" src="./pics/1px.gif"></td>

  <td width="470" align="center" style="border-top: 1px solid;">text</td>

</tr>

</table>


ps: das sollte dann am ende aussehen wie eine Registerkarte

Hm, probier doch mal im <img>-Tag border="0" ....

ich habs versucht. leider kein erfolg. trotzdem danke für die mühe

Original geschrieben von kills


<table height="30" width="800px" cellspacing="0" cellpadding="0">

..snip..

 <td width="30" style="border-top: 1px solid; background-image:

url('./pics/bg_el2.gif');background-repeat: no-repeat;">

<img height="30" width="30" src="./pics/1px.gif"></td>

..snip..

Hm, was steht denn in Deinen Styles drin, die Du verwendest?

das mit dem background repeat hab ich ma rausgenommen.

ändert aber nix an meinem problem. sieht noch genauso aus wie zuvor.

----------

ich versuch ma mein problem anders zu beschreiben:

das eigentliche problem ist das, das mein background image das ich in die zelle einbinde nicht mit dem oberen rand des bildes beginnt . es sieht so aus als wäre zu dem oberen rand der zelle noch 2mm abstand da. wenn dieser nicht da wäre würde es passen. aber wie? verständlich?

ich habs jetzt folgendermaßen gelöst:


         								<table height="30" width="100%" cellspacing="0" cellpadding="0">

         					            <tr>

                                       <td width="270" style="background-color:#8CAEAF;"></td>

         						            <td width="30" style="background-image: url('./pics/bg_el1.gif');background-repeat:no-repeat;background-position:0px -5px;"><img height="30" width="30" src="./pics/1px.gif" border="0"></td>

                                       <td width="500" align="center" style="border-top: 1px solid;background-color:#B7C6C1;">

                                          status

         						            </td>

         					            </tr>

         								</table>


Ich habs, ich habs!!!

Table border="0"...

Weil: auch wenn die Gitternetzlinie nicht angezeigt wird, da isse....

Los, probier!:D

Oh, war wohl etwas zu spät und zu voreilig.....

hehe ich war schneller :P

aber trotzdem danke :cool:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.