Jump to content

Recommended Posts

Hey peeps,

I have a problem with fieldsets and safari.

I have the following html...

[code]<div id="media">
<img src="/userfiles/images/contact.jpg" alt="image" width="380" height="320" longdesc="/longdesc.php?image_id=61" />
<span class="hidden"><a href="/longdesc.php?image_id=61">d</a></span>
</div>
<div id="text">
<form action="/index.php" method="post" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Person</legend>
<label for="person">Person:</label>
<select name="mailto" id="mailto">
<option value="contact-us/person">Please Select...</option>
<option value="2">Rob Charlton</option>
<option value="6">Mike Douglas</option>
<option value="8">Richard Elphick</option>
<option value="3">Joe Gellert</option>
<option value="10">Andy Roberts</option>
</select><br />
<label for="name">Your Name:</label>
<input type="text" name="name" id="name" value="" /><br />
<label for="email">Email:</label>
<input type="text" name="email" id="email" value="" /><br />
<label for="subject">Subject:</label>
<input type="text" name="subject" id="subject" value="" /><br />
<label for="message">Message:</label>
<textarea name="message" id="message"></textarea><br />
</fieldset>
<input type="hidden" name="section" id="section" value="contact-us" />
<input type="hidden" name="mode" id="mode" value="person" />
<input type="submit" name="submit" id="submit" value="Send" />
</form>
<div class="clear"></div>
</div>[/code]

Now the div#media is floated right. BUT the fieldset in safari goes behind the image and is 100% the width of the div#text. I have tried setting a right margin on the fieldset to no avail. I know safari support for fieldsets is not too hot but this is driving me mad.

url if you need it.

[url=http://waringnetts.contrastcompany.co.uk/contact-us/person]http://waringnetts.contrastcompany.co.uk/contact-us/person[/url]
Link to comment
https://forums.phpfreaks.com/topic/32691-safari/
Share on other sites

It seems to me that your element is wider in safari than it is in firefox. The image to the right remains in the same spot on both. I'm not terribly proficient at CSS, but I'm thinking there's a width declaration missing?

Here's my comparison screen shot : safari is on top.
[img]http://www.virtual-showcase.net/phpfreaks/safari.gif[/img]
Link to comment
https://forums.phpfreaks.com/topic/32691-safari/#findComment-153333
Share on other sites

nope the width of the parent container for the form is not explicitly defined simply given an auto margin for the right (this has to be so that content beyond the height of the image will fill the space under it.)

I know safari has issue with this but just wondered if anyone had managed to overcome them.
Link to comment
https://forums.phpfreaks.com/topic/32691-safari/#findComment-153447
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.