473,503 Members | 10,012 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with formatting

If you render this code, the menu items should align horizontally
across the page. If the DIV tag is removed around "Search Library",
you'll see what I mean. However, with the DIV tag in place, "Search
Library" jumps up above "Get Alerts".

I want the DIV styling to only turn the text a light gray and nothing
else. There should be no other reformatting or moving of text.
Perhaps a DIV isn't the correct tag. I'm open to any suggestions.

<style>

A.menu:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A.menu:hover {
TEXT-DECORATION: underline
}
</STYLE>

<TABLE cellSpacing=0 cellPadding=0 width='96%' border=0>
<TBODY>
<TR>
<TD colSpan=2><IMG height=5
src='http://www.marketingsherpa.com/images/dot-640.gif'
width=640
border=0><BR></TD></TR>
<TR>
<TD vAlign=center align=right><A class=menu

href='http://cl.exct.net/?ffcd16-fe5d157477640275701c-fe1b1378716d067e701278'

target=_blank><div id="sample1" style="color: #E0E0E0;
width: 0.1em; white-space: nowrap;">Search Library</div></A>
<SMALL>|</SMALL> <A class=menu

href='http://cl.exct.net/?ffcd16-fe5c157477640275701d-fe1b1378716d067e701278'

target=_blank>HelpWanteds</A> <SMALL>|</SMALL> <A
class=menu

href='http://cl.exct.net/?ffcd16-fe641574776402757314-fe1b1378716d067e701278'

target=_blank>Bestselling Reports</A> <SMALL>|</SMALL> <A
class=menu

href='http://cl.exct.net/?ffcd16-fe631574776402757315-fe1b1378716d067e701278'

target=_blank>Join/Leave Lists</A> <SMALL>|</SMALL> <A
class=menu

href='http://cl.exct.net/?ffcd16-fe621574776402757316-fe1b1378716d067e701278'

target=_blank>Get Alerts</A> <SMALL>|</SMALL> </TD>
<TD vAlign=center align=middle><A

href='http://cl.exct.net/?ffcd16-fe611574776402757317-fe1b1378716d067e701278'

target=_blank><IMG height=14
src='http://www.marketingsherpa.com/images/rss.gif'
width=30
border=0></A></TD></TR>
<TR>
<TD colSpan=2><IMG height=5
src='http://www.marketingsherpa.com/images/dot-640.gif'
width=640
border=0><BR></TD></TR></TBODY></TABLE>

Thanks,
Brett

Jul 21 '05 #1
5 2087
brett wrote:
If you render this code, the menu items should align horizontally
across the page. If the DIV tag is removed around "Search Library",
you'll see what I mean. However, with the DIV tag in place, "Search
Library" jumps up above "Get Alerts".

I want the DIV styling to only turn the text a light gray and nothing
else. There should be no other reformatting or moving of text.
Perhaps a DIV isn't the correct tag. I'm open to any suggestions.


your version:
<div id="sample1" style="color: #E0E0E0; width: 0.1em; white-space:
nowrap;">Search Library</div>

cut_crap will give:

<div style="color: #E0E0E0;">Search Library</div>

btw, i think you are better served by HTML 4.01 Transitional

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

and .. make sure you validate your pages + css
gr

martin
Jul 21 '05 #2
brett wrote:
If you render this code, the menu items should align horizontally
across the page. If the DIV tag is removed around "Search Library",
you'll see what I mean. However, with the DIV tag in place, "Search
Library" jumps up above "Get Alerts".

I want the DIV styling to only turn the text a light gray and nothing
else. There should be no other reformatting or moving of text.
Perhaps a DIV isn't the correct tag. I'm open to any suggestions.


<div id="sample1" style="color: #E0E0E0; width: 0.1em; white-space:
nowrap;">Search Library</div>

cut_crap will give:

<div style="color: #E0E0E0;">Search Library</div>


Jul 21 '05 #3
What are you talking about? This doesn't do anything.

Jul 21 '05 #4
brett wrote:
If you render this code, the menu items should align horizontally
across the page. If the DIV tag is removed around "Search Library",
you'll see what I mean.
"you'll see what i mean" is for sure the worst possible description of
what you actually want !!

what i saw was that "Search Library" poppud up in different places in IE
and mozilla, and that is what i thought was propably what you meant.

next time you better explain in understandable terms what you actually
want and what your problem is !
What are you talking about? This doesn't do anything.


anyway, maybe you are more happy with another solution, which is of
course also just a guess as it is not clear what you mean at all.

<A style="color: #e0e0e0;" class=menu
href='http://cl.exct.net/?ffcd16-fe5d157477640275701c-fe1b1378716d067e701278'
target=_blank>Search Library</A>

and, next time before you post: validate your html+css, and offer an
example of your problem that is trimmed down to the mere escence. simply
throwing a buch of code in here will not likely attarct much attention.
Jul 21 '05 #5
Ok, sorry. What I see are the
HelpWanteds | Bestselling Reports | Join/Leave Lists | Get Alerts

menu items going across the page horizontally. Search Library is on
top of Get Alerts. I'm not sure how else to explain it.

After running the code through an HTML validator, as you suggested, it
mentioned I couldn't have a block level tag (the DIV) where it was
placed. I then used SPAN and that solved my problem. Now Search
Library is to the left of Help Wanted, just as I needed it. Everything
goes across the page horizontally.

Not sure if the above is a good enough explanation. I hope it is.
Please let me know.

Thanks,
Brett

Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
287
by: dinoo | last post by:
I need your help I want to know what other options user have if he does not have Microsoft Word on his machine I would like to use word sort of application for formatting documents, these...
4
2111
by: Wayne Aprato | last post by:
I have a simple database which was originally written in Access 97. When converted to Access 2000 file format it ran flawlessly in Access 2002. I've just tried to run it in Access 2003 and I am...
7
3906
by: BBFrost | last post by:
I'm receiving decimal values from database queries and placing them on a report page. The users want to see the following .... Db Value Display Value 123.3400 123.34...
3
4017
by: trint | last post by:
Ok, I have a textbox that I want to check as one types each charactor for Currency formatting, another one for Date formating. Any help is appreciated. Thanks, Trint
4
3220
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
2
2335
by: jodyblau | last post by:
I'm not certain that what I am trying to do is possible; in any event I haven't been able to figure it out. Here is what I am trying to do: I have one table that has a list of cases I'm working...
2
2395
by: sgtted71 | last post by:
I have searched the Word Help and the Access Help, I have consulted the well used Access Bible that sits behind my desk, and to no avail...so now I consult the mighty brain trust that is...
0
5518
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
4
3110
by: n.phelge | last post by:
I need to perform an XSLT to set the namespace on some XML and I need to preserve the original document line formatting to assist with error handling (so the line number from any schema validation...
8
6683
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.