Solved

Short questions

Posted on 2003-11-19
9
248 Views
Last Modified: 2010-04-09
1. How can I use just 75% of the screen? So There will be a little bit of screen on the left and right of the screen that I cannot use

2. Now can I have shading under my check boxes?

3. Also normall check boyes are round, how I have square check boxes?

4. In a table such as:
<TABLE width="100%">
 <TR>
  <TD width="49%">Spot </TD>
  <TD><INPUT type="text" name="myCheckbox1" value="" />
  <TD width="49%">&nbsp;</TD>
 </TR>
<TR>
  <TD width="49%">Outright forwards</TD>
  <TD><INPUT type="text" name="myCheckbox2" value="" />
  <TD width="49%">&nbsp;</TD>
 </TR>
 <TR>
  <TD width="49%">Total </TD>
  <TD><INPUT type="text" name="myCheckbox3" value="" />
  <TD width="49%">&nbsp;</TD>
 </TR>
</TABLE>
If I were to pick the input from them in ASP would I say:
Statement=Request.Form("myCheckbox1")
Statement2=Request.Form("myCheckbox2")
Statement3=Request.Form("myCheckbox3")
0
Comment
Question by:PieP
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 9781369
in the table tag, instead of 100% use 75% ... and then put <CENTER> tags around the table
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 9781373
like this:

<CENTER>
<TABLE width="75%">

...

</TABLE>
</CENTER>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9781422
>>Also normal checkboxes are round, how can I have square checkboxes...

Round? Are you sure you're not referring to radio buttons, or have you just been cutting corners in your checkbox code :-)
0
 
LVL 17

Accepted Solution

by:
dorward earned 50 total points
ID: 9781431
(1)

<body style="text-align: center;">
<div style="width: 75%; margin-left: auto; margin-right: auto; text-align: left;">
<!-- your content -->

(2) Not without jumping through quite a lot of hoops and producing some really ugly code, and then its rather hit and miss.

(3) Normal checkboxes are square, you appear to be using text boxes.

<input type="checkbox" ...>
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 11

Expert Comment

by:Zontar
ID: 9785942
Don't use the CENTER tag -- it's out of date.

dorward, will using auto for the left and right margins work to center in MSIE? I don't think it will. Plus there's no need to add an extra DIV. Simply use

<table width="75%" align="center">

this will work for all browsers currently in use.
0
 
LVL 17

Expert Comment

by:dorward
ID: 9785971
Zontar: It will, under some circumstances, the text-align mess is the work around.

<http://dorward.me.uk/www/centre/> has the details.

<table width="75%" align="center"> is just as out of date as <center>

(And I really doubt that anything will work for _all_ browsers currently in use - it just doesn't make sense on, for instance, a browser that outputs to braille)
0
 
LVL 11

Expert Comment

by:Zontar
ID: 9786079
All graphical browsers, then.

The center attribute is deprecated but width is not. Using align="center" is in fact better than using the <center> tag because the former does not affect the logical structure of the document, whereas <center> does.

Plus you lose points for using an inline style. <G>

Won't your "fix" screw things up in CSS-compliant browsers? And why use the DIV? Again this is extraneous markup that serves no purpose that I can see.
0
 
LVL 17

Expert Comment

by:dorward
ID: 9786144
> The center attribute is deprecated but width is not.

Width is still presentational markup and should be avoided.

> Using align="center" is in fact better than using the <center> tag
> because the former does not affect the logical structure of the document,
> whereas <center> does.

Still presentational

> Plus you lose points for using an inline style. <G>

Just for the sake of example. External style sheets are of course implied.


> Won't your "fix" screw things up in CSS-compliant browsers?

No

> And why use the DIV? Again this is extraneous markup that serves no purpose that I can see.

You didn't read the document I referenced did you? Its becuase Internet Explorer is a buggy pile of <self censored>. You can get rid of the text-align assignments and the div if you don't mind sacrifing the centring for MSIE 5.x and earlier (and if you ensure that you are in standards mode).
0
 
LVL 11

Expert Comment

by:Zontar
ID: 9789608
We'll just have to agree to disagree, then.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now