webForumDet fria alternativet

border

9 svar · 580 visningar · startad av Jeppeweb

JeppewebMedlem sedan sep. 2006512 inlägg
#1
<%
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] />&nbsp;&nbsp;</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!

MeleaMedlem sedan juli 20032 667 inlägg
#2

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;""
JeppewebMedlem sedan sep. 2006512 inlägg
#3

Det blev nog lite fel, ja. ^^

tack.

OveRRidEMedlem sedan feb. 20018 509 inlägg
#4

Flytta från ASP.

JeppewebMedlem sedan sep. 2006512 inlägg
#5

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>.

@ndersMedlem sedan juni 200026 914 inlägg
#6

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="".

JeppewebMedlem sedan sep. 2006512 inlägg
#7

Öh va?

JeppewebMedlem sedan sep. 2006512 inlägg
#8
<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.......

@ndersMedlem sedan juni 200026 914 inlägg
#9

I img-taggen MÅSTE attributet alt anges.

http://www.w3.org/QA/Tips/altAttribute

JeppewebMedlem sedan sep. 2006512 inlägg
#10

självklart

Genererad på 372 ms · cache AV · v20260730165559-full.f96bc7eb