Pratik Gujarathi
Pratik Gujarathi

Reputation: 768

browser issue in php?

i design one form for registration of users.

in that i use tag in i use align="center"

<fieldset style="width:618.233px;" align="center">

but now problem is that in IE it run successfully.But in firefox it cant accept "align=center". it just display form bydefault(means left align)

i cant user tag because form get ugly look. what should i do?

Upvotes: 0

Views: 72

Answers (3)

Otar
Otar

Reputation: 2591

You have two options:

  1. Align text in the center with CSS text-align property, not the whole fieldset.
  2. Give fixed width to the fieldset (you already have width:618.233px;) and add this CSS properties: margin-left: auto; margin-right: auto; or simply margin: 0 auto;

Upvotes: 0

Martin
Martin

Reputation: 10563

There is no align property to the fieldset tag in html. See here.

<fieldset style="width:618.233px; text-align:center;" />

Upvotes: 0

Murugesh
Murugesh

Reputation: 820

give margin : auto;

Upvotes: 1

Related Questions