The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> margin issues & calling javascripts
pat
post Oct 30 2006, 01:23 PM
Post #1





Group: Members
Posts: 5
Joined: 30-October 06
Member No.: 623



Hi... I have two issues to sort out with CSS, and any help would be appreciated. A reference page is at: http://www.dracoblu.com/testindex1.html

The relavant stylesheet is: http://www.dracoblu.com/grass_stains.css

1. The search box in the menu is displaying fine in FireFox, but in IE7 is showing as two line blocks. I suspect this may be a margin issue. It is being called in the following js code:

with(milonic=new menuname("search")){
style=style1;
aI("text=`<form method=get action=http://search.atomz.com/search/><div class=search id=milonic><input type=text size=20 name=sp-q id=sp-q style='color: #010425; background-color: #eeeeee; font-family: arial; font-size: 11px' /> <input type=submit value=Go style='color: #010425; font-family: arial; font-size: 11px; text-align: center' /> <input type=hidden name=sp-a id=sp-a value=sp10015b5a /></div></form>`;type=form;");
}

2. In the menu bar I wish to show the current date to the far right calling the javascripts as follows:

<div class="topnav" "date" id="nav" "date"><script src="embed_main.js"
type="text/javascript"></script><script src="date.js" type="text/javascript"></script></div>

The date appears to be under the menu to the far left.

Thanks in advance. ... Pat
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
ShadowyBob
post Oct 30 2006, 06:56 PM
Post #2


Advanced Member
****

Group: Members
Posts: 101
Joined: 6-October 06
From: Peterborough, UK
Member No.: 354



Pat, can't help you out with your js, but for what it's worth, my IE7 displays your search box just fine when I have JavaScript switched on! Can't see anyway to navigate or search when I have JavaScript disabled, though.

This post has been edited by ShadowyBob: Oct 30 2006, 07:00 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Oct 30 2006, 07:10 PM
Post #3


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



Just a couple comments...
  • When JavaScript is disabled/unavailable, all the (working) links are off-site links.
  • Why are you testing with such old versions of Firefox & Opera?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 30 2006, 07:11 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,682
Joined: 10-August 06
Member No.: 7



QUOTE(pat @ Oct 30 2006, 07:23 PM) *

1. The search box in the menu is displaying fine in FireFox, but in IE7 is showing as two line blocks. I suspect this may be a margin issue.


Most likely. Try removing the FORM element's margin in your script example: http://htmlhelp.com/faq/html/forms.html#form-nospace


QUOTE
2. In the menu bar I wish to show the current date to the far right calling the javascripts as follows:

<div class="topnav" "date" id="nav" "date"><script src="embed_main.js"
type="text/javascript"></script><script src="date.js" type="text/javascript"></script></div>

The date appears to be under the menu to the far left.


To get it to the right you may have to use a CSS float or absolute positioning, or perhaps use a layout table.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pat
post Oct 30 2006, 08:04 PM
Post #5





Group: Members
Posts: 5
Joined: 30-October 06
Member No.: 623



QUOTE(ShadowyBob @ Oct 30 2006, 03:56 PM) *

Pat, can't help you out with your js, but for what it's worth, my IE7 displays your search box just fine when I have JavaScript switched on! Can't see anyway to navigate or search when I have JavaScript disabled, though.


Thanks....I managed to fix the two line block display in IE7 with a margin 0px style command in the JS menu regarding the form for the search box.

Still searching for correct display of the current date in the menu bar.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pat
post Oct 30 2006, 08:21 PM
Post #6





Group: Members
Posts: 5
Joined: 30-October 06
Member No.: 623



QUOTE(Darin McGrew @ Oct 30 2006, 04:10 PM) *

Just a couple comments...
  • When JavaScript is disabled/unavailable, all the (working) links are off-site links.
  • Why are you testing with such old versions of Firefox & Opera?



Thanks Darin... I am current with Firefox 2, and I have not tested in Opera only IE7.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pat
post Oct 30 2006, 11:44 PM
Post #7





Group: Members
Posts: 5
Joined: 30-October 06
Member No.: 623



QUOTE(Christian J @ Oct 30 2006, 04:11 PM) *

QUOTE(pat @ Oct 30 2006, 07:23 PM) *

1. The search box in the menu is displaying fine in FireFox, but in IE7 is showing as two line blocks. I suspect this may be a margin issue.


Most likely. Try removing the FORM element's margin in your script example: http://htmlhelp.com/faq/html/forms.html#form-nospace


QUOTE
2. In the menu bar I wish to show the current date to the far right calling the javascripts as follows:

<div class="topnav" "date" id="nav" "date"><script src="embed_main.js"
type="text/javascript"></script><script src="date.js" type="text/javascript"></script></div>

The date appears to be under the menu to the far left.


To get it to the right you may have to use a CSS float or absolute positioning, or perhaps use a layout table.


Thanks Christian... I solved the search form display. Still struggling with the CSS to place the date properly to the far right in the same block that occupies the horizontal menu
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 31 2006, 12:17 AM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,736
Joined: 9-August 06
Member No.: 6



QUOTE(Darin McGrew @ Oct 31 2006, 01:10 AM) *

When JavaScript is disabled/unavailable, all the (working) links are off-site links.


Pat, since you write about an accessibility update of your site you may want to know that the menu isn't accessible even with JS on. Try to navigate without the mouse and you'll find you can't.

Where is the date you talk about? I don't see anywhere.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pat
post Oct 31 2006, 09:31 AM
Post #9





Group: Members
Posts: 5
Joined: 30-October 06
Member No.: 623



QUOTE(pandy @ Oct 30 2006, 09:17 PM) *

QUOTE(Darin McGrew @ Oct 31 2006, 01:10 AM) *

When JavaScript is disabled/unavailable, all the (working) links are off-site links.


Pat, since you write about an accessibility update of your site you may want to know that the menu isn't accessible even with JS on. Try to navigate without the mouse and you'll find you can't.

Where is the date you talk about? I don't see anywhere.



Thanks for your reply Pandy. The menu links are not fully completed as this is only a test page. It is not an issue for me at this time but rather placement of certain items on the page as a template for completing the rest of the site....The date is being called with the following JS:

<div class="topnav" "date" id="nav" "date"><script src="embed_main.js"
type="text/javascript"></script><script src="date.js" type="text/javascript"></script></div>

The date is appearing behind the blue menu navigation bar, and I want to see it display in the same block line to the far right. The portion of CSS script related to the menu and date is as follows. I wish to avoid using a table:

.topnav {
position:relative;
width:780px;
height:19px;
margin:0 0 0 0;
padding:0 0 0 0;
background:#003366;
font-size:.11em;
text-align:left;
}

.date {
position:relative;
width:200px;
height:19px;
margin:0 0 500 0;
padding:0 0 0 0;
background:#003366;
font-size:.11em;
color:#eeeeee;
text-align:right;
}

Any help would be appreciated.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 7th June 2024 - 01:46 PM