HighDots Forums  

Newbie question on styles inside html doc

alt.html.writers alt.html.writers


Discuss Newbie question on styles inside html doc in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Manfred Preußig
 
Posts: n/a

Default Newbie question on styles inside html doc - 03-09-2007 , 05:13 AM






hello,
I just try to setup a html based internet site and to make the element
positions I decided to use tables. It worked all fine but than I wanted
to make a background image for one of the cells. I first make the image
in Paint Shop than insert it to the page. After it I changed it from
normal picture insert to the backgrund through

<td
style="background: transparent url(./Bilder/Strichbild_Haus_klein.jpg)
repeat scroll 0% 50%; -moz-background-clip: initial;
-moz-background-origin: initial; -moz-background-inline-policy: initial;
height: 150px; width: 200px;"
align="undefined" valign="undefined"><br>

(Don't look at the name, it's german). It worked too and I'm able to
insert additional parts in front of it. But the size settings are
strange. As one can see the cell size is 200 in width. The image size is
200px in width too. But in the cell a small part of another instance of
the picture is shown at the right-most edge of the cell, just two or
three px in width. It looks shitty of course. I think it belongs to the
repeat setting in the style-line but I don't know how to change it. Can
anyone help me doing it?

Reply With Quote
  #2  
Old   
Julien A
 
Posts: n/a

Default Re: Newbie question on styles inside html doc - 03-12-2007 , 08:27 AM






Hi,

Try to replace all the background stuff with only this :

background: url(./Bilder/Strichbild_Haus_klein.jpg);
background-repeat: no-repeat ;


Regards,

Ju



Manfred Preußig a écrit :
Quote:
hello,
I just try to setup a html based internet site and to make the element
positions I decided to use tables. It worked all fine but than I wanted
to make a background image for one of the cells. I first make the image
in Paint Shop than insert it to the page. After it I changed it from
normal picture insert to the backgrund through

td
style="background: transparent url(./Bilder/Strichbild_Haus_klein.jpg)
repeat scroll 0% 50%; -moz-background-clip: initial;
-moz-background-origin: initial; -moz-background-inline-policy: initial;
height: 150px; width: 200px;"
align="undefined" valign="undefined"><br

(Don't look at the name, it's german). It worked too and I'm able to
insert additional parts in front of it. But the size settings are
strange. As one can see the cell size is 200 in width. The image size is
200px in width too. But in the cell a small part of another instance of
the picture is shown at the right-most edge of the cell, just two or
three px in width. It looks shitty of course. I think it belongs to the
repeat setting in the style-line but I don't know how to change it. Can
anyone help me doing it?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.