473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

alignment

I have some content i want to align on the right side of a box that is centered and 1000px wide. I create an id named loginmenu and make it the width of the screen
#loginmenu{
z-index : 3;
position : absolute;
top: 190px;
width:100%;
color : #000033;
font-family:tahoma;
font-weight:bold;
font-variant:small-caps;
}

Then i create a sub style and make the width 1000px; that way it is centered over the background image. I use text-align:right;

#loginmenu p{
width : 1000px;
text-align:right;
}

I then create a div

<div id="loginmenu"><p> LOTS OF CODE....</p></div>

This menu that appears is not aligned to the right. However if i put text-align:right; in the first css definition it pushes the whole 1000px box to the right with the text centered inside that.... I believe....

Can someone help please?
Im also having a similar issue with a table inside a div ill get to that later.

The site is www.players-vintage.com if interested
Apr 19 '07 #1
2 1210
Ok so ive determined my problem lies in the fact that i am using tables

<div id=login><p>
<form method="post" action="login.php">
Email: <input type="text" name="email" size="30" maxlength="40"><br><br>
Password: <input type="password" name="password" size="30" maxlength="20"><br><br>
<input type="submit" value="Login" id="login">
<a href="scripts/load_newaccount.php" class="box1">Sign Up</a>
</form>
</p>
</div>

This ends up creating 1 div on top, the form underneath, and then another div below
Apr 20 '07 #2
drhowarddrfine
7,435 Expert 4TB
Don't know what you are trying to say with your last post. I assume you are still having problems.

First, your doctype is incorrect and puts you into quirks mode. See the sticky at the top of this board.

Second, while you seem to want to declare html, you are using Xhtml end tags; the />. Remove the slash.

Third, validate your html for a short list of errors there.
Apr 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shashi | last post by:
Can somebody explain how the byte alignment for structures work, taking the following example and considering: byte of 1 Byte word of 2 Bytes dword of 4 Bytes typedef struct { byte a; word...
10
by: j0mbolar | last post by:
for any pointer to T, does a pointer to T have different or can have different alignment requirement than a pointer to pointer to T? if so, where is the exact wording in the standard that would...
67
by: S.Tobias | last post by:
I would like to check if I understand the following excerpt correctly: 6.2.5#26 (Types): All pointers to structure types shall have the same representation and alignment requirements as each...
7
by: Earl | last post by:
Any known fixes for the wacky right-alignment bug in the WinForms datagrid (VS2003)? I've tried Ken's workaround...
13
by: aegis | last post by:
The following was mentioned by Eric Sosman from http://groups.google.com/group/comp.lang.c/msg/b696b28f59b9dac4?dmode=source "The alignment requirement for any type T must be a divisor of...
12
by: Yevgen Muntyan | last post by:
Hey, Consider the following code: #include <stdlib.h> #define MAGIC_NUMBER 64 void *my_malloc (size_t n) { char *result = malloc (n + MAGIC_NUMBER);
10
by: haomiao | last post by:
I want to implement a common list that can cantain any type of data, so I declare the list as (briefly) --------------------------------------- struct list { int data_size; int node_num;...
55
by: fishpond | last post by:
How to declare a variable guaranteed to have the strictest possible alignment? -- The defense attorney was hammering away at the plaintiff: "You claim," he jeered, "that my client came at you...
2
by: somenath | last post by:
Hi All, I have one question regarding the alignment of pointer returned by malloc. In K&R2 page number 186 one union is used to enforce the alignment as mentioned bellow. typedef long...
2
by: uamusa | last post by:
I am Dynamically generating a proposal(report) in MS Word. By default the Paragraph Alignment is "Left". For the First 6 Paragraphs I set the Alignment to "Center", and then when attempting to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.