Jättefel forum för det, tycker du inte?
Byt ut:
width=""49"" height=""72"" border=""1""
Mot
style=""width: 49px; height: 72px; border-bottom: 1px solid #000; border-left: 1px solid #ccc;""
9 svar · 580 visningar · startad av Jeppeweb
<%
Set rs2 = Connect.execute("Select bild, Id From medlemmar WHERE bildaccept = '1' ORDER BY senastdatum DESC limit 9")
if rs2.eof then
Response.write ""
rs2.Close
Set rs2 = nothing
else
arrRs2 = rs2.GetRows()
rs2.Close
Set rs2 = nothing
intRows2 = uBound(arrRs2,2)
For rows2 = 0 to intRows2
Response.Write "<a title=""" & arrRs2(0,rows2) & """><img src=""bilder/userspics/" & arrRs2(0,rows2) & """ width=""49"" height=""72"" [3]border=""1""[/3] /> </a>"
Next
End if
%>
Border=""1"" fungerar, men jag vill komma åt mer specifikt med Border-bottom och Border-left, men det funkar ju inte? Why?
tjo!
Jättefel forum för det, tycker du inte?
Byt ut:
width=""49"" height=""72"" border=""1""
Mot
style=""width: 49px; height: 72px; border-bottom: 1px solid #000; border-left: 1px solid #ccc;""
Flytta från ASP.
Hur kommer det sig att den inte validerar då?
style=""width: 49px; height: 72px; border-bottom: 1px solid #000; border-left: 1px solid #ccc;""
Error Line 48 column 229: required attribute "alt" not specified.
...fff; border-right: 2px solid #ccc;" /></a><a title="hej3.jpg"><img src="http:
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Att det inte validerar har ju inte med css-koden att göra. Det står ju i klartext vad felet är? Du måste ange attributet alt i alla img-taggar. Har du ingen text att lägga där får du lägga dit alt="".
Öh va?
<a title=""" & arrRs2(0,rows2) & """><img src=""/bilder/userspics/" & arrRs2(0,rows2) & """ style=""width: 47px; height: 71px; border-bottom: 2px solid #ccc; border-left: 5px solid #fff; border-right: 2px solid #ccc;"" /> </a>"
Vill inte låta spydig.......
självklart