css backgrounds images -


hi have 1px png file,which trying set background image 2 divs adjacent each other horizontally.the html , css under:-

<div id='one'>hi</div> <div id='two'>hello</div> 

the css this

div {     width: 50%;     height: 50% } #one, #two {     background-image: url(/images/image.png);     background-repeat: repeat; } 

now problem here in between 2 divs black border automaticaly appears when image set. dont want 2 divs seen separate blocks.please help. totally new css , need help:-)!

i'd willing bet image using has alpha transparency (that is, image partially transparent), , you're seeing one-pixel overlap between 2 divs. either make sure container number of pixels wide, or put divs inside container , use background on instead.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -