![]() |
A small CSS issue
I trying to get a less is possible requied lines to get border on img with using css but my third attemp to make it properly didnt work good.
I made 3 examples of css in action and 3-third one is totaly messed. http://frajkt.com/cars/css1.html http://frajkt.com/cars/css2.html http://frajkt.com/cars/css3.html First one is implement of td tag,which is good but it requires repeating of td tag which is bad,second one is implementation of img tag which is good but bad if you dont want border on certain images and third one is calling tag one which contain border setting but for some reason it shows big border on first image and on other images shows one big border and it should be border on every image.When i tried that code first time it worked but then sudenly it stopped working. |
Good luck :)
|
I looked at the first two, then clicked on the third, but couldn't be bothered to click the 'View Source' button. Sorry.
|
well your first mistake is using css in tables...
just make it all divisions... and assign the divisions to have your border and padding and spacing... |
why not do this?
.outer { background: #000000; padding: 5px; border: 2px solid #ffffff; float:left; } .imagenigga { border: 2px solid #ffffff; } <div class="outer"><img src="images.jpg" class="imagenigga"></div> <div class="outer"><img src="images.jpg" class="imagenigga"></div> <div class="outer"><img src="images.jpg" class="imagenigga"></div> <div class="outer"><img src="images.jpg" class="imagenigga"></div> |
Quote:
|
Quote:
|
Quote:
one.css: http://frajkt.com/cars/one.css two.css: http://frajkt.com/cars/two.css three.css http://frajkt.com/cars/three.css css1.html includes one.css, css2.html includes two.css and css3.html includes three.css |
Damn,after 12 hours spended on searching for proper solution finaly some guy from one mainstream webmaster board give me proper reply after maybe 20 replies in that thread.One of replies was even to do borders in photoshop.
In shortly this is needed to add to css file to ignore img tag for border: .noborder {border:0 ;} |
Nice pages and cars, why changing them? They look good.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Are you just trying to place a css border or are you also trying to place a background image behind the foreground picture? |
Quote:
|
try:
td {border-style: solid;} or perhaps body {border-style: solid;} |
| All times are GMT -7. The time now is 03:05 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123