2 replies [Last post]
Percival
Percival's picture
Offline
newbie
Last seen: 1 day 3 hours ago
Timezone: GMT+8
Joined: 2019-11-30
Posts: 2
Points: 3

Please don't say I should have multi line indented coding. My text editor allows deleting & copying a line very easily.

I have narrowed down my problem to the following;

/*1*/<style type="text/css"> .in { position: fixed; width: 100%; left:70%; top: 26%; } </style>
/*2*/<style type="text/css"> .sh { position: fixed; width: 100%; left: 40%; top: 26%; } </style>
 
/*3*/
 
/*4*/<div class="in"> <select name="inout" style="width: 10%; height: 5mm"; >
/*5*/<option value="">Select</option>
/*6*/<option  value="in">In</option>
/*7*/<option  value="out">Out</option>
/*8*/</select></div>
 
/*9*/<div class="sh"> <input type="text" value="" name="shop" style="width: 17%; height: 4mm"; ></div>
(mod edit, adding closing virgule to code block)

Having line 9 after the other lines, the dropdown does not work, but if I place it in line 3 it works OK.

And if I delete line 1 or 2, and leave line 9 where it is, again it works OK.

One might say to move line 9 to line 3 but I don't want that because the above is not really my problem.

I have other div coding which only comes at the end, so I need to find an answer to the above.

Percival
Percival's picture
Offline
newbie
Last seen: 1 day 3 hours ago
Timezone: GMT+8
Joined: 2019-11-30
Posts: 2
Points: 3

Found the problem

I have found the problem but there appears no interest in this subject on the site. There is no provision to delete this post.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 16 hours 10 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9745
Points: 3824

Formatting

Quote:

Please don't say I should have multi line indented coding. My text editor allows deleting & copying a line very easily.

We do appreciate well formatted code. Formatting code doesn't matter to the machine, unless it is a language where format is an element of the syntax e.g. Python. It does matter to the human who tries to read, understand and debug that code.

Were it me, I'd try very hard to make it easier for someone who is offering their time to help.

gary/mod

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.