Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Not giving button style
Old 11-07-2009, 08:45 AM Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
I currently have this css:

Code:
input{
font-size:12px;
padding:4px 2px;
border:solid 1px #675f39;
}
</style>
and this form:

Code:
<form action="accounts-password.php" AUTOCOMPLETE = "off" method="POST"> 
<input type="hidden" name="member" value="1" /> 

<span style="float: left;">
Your old Password:
</span>
<span style="float: right;">
<input size="40" class="only" type="password" name="oldpass">
</span>
<br><br>
<hr>

<span style="float: left;">
Your New Password:
</span>
<span style="float: right;">
<input size="40" type="password" name="newpass">
</span>
<br><br>

<span style="float: left;">
Re-Type Your New Password:
</span>
<span style="float: right;">
<input size="40" type="password" name="veri">
</span>
<br><br>
<hr>
<center>
<input name="chpass" id="submit" type="submit" value="Change Password" >
</center>

</form>
I only want css style for the input textboxes like:
Code:
<input size="40" type="password" name="newpass">
For some reason Its giving me a css style for the submit button:
Code:
<input name="chpass" id="submit" type="submit" value="Change Password" >
How do I do it so the submit button stays default like with no css added to it, but the input text boxes still keep it?

I guess its because they are both starting with the '<input', not sure.
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-07-2009, 09:00 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.themaninblue.com/writing/...ve/2004/04/28/

http://articles.sitepoint.com/articl...-web-forms-css

http://www.456bereastreet.com/archiv...form_controls/
http://www.456bereastreet.com/archiv...css_revisited/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 09:01 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
I looked at those.

But I have tried there tutorials and it still gives me styles for it. I want no style for it at all, like a regular button.

Like the: Post Quick Reply button you have under the textbox.
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 09:06 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Then don't apply a style to it and it will be a standard button, the design of which will depend on the user OS.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 09:14 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
I dont, but the thing is then the style for the input boxes wont show, I am trying to make a nice border around it. Can I input it directly with something like:

Code:
<input size="40" class="only" style="border:solid 1px #675f39; padding:4px 2px; font-size:12px;" 
 type="password" name="oldpass">
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

Last edited by sith717; 11-07-2009 at 09:16 AM..
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 09:20 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
That seemed to work:

Code:
<form action="accounts-password.php" AUTOCOMPLETE = "off" method="POST"> 
<input type="hidden" name="member" value="1" /> 

<span style="float: left;">
Your old Password:
</span>
<span style="float: right;">
<input size="40" class="only" style="border:solid 1px #675f39; padding:4px 2px; font-size:12px;" type="password" name="oldpass">
</span>
<br><br>
<hr>

<span style="float: left;">
Your New Password:
</span>
<span style="float: right;">
<input size="40" style="border:solid 1px #675f39; padding:4px 2px; font-size:12px;" type="password" name="newpass">
</span>
<br><br>

<span style="float: left;">
Re-Type Your New Password:
</span>
<span style="float: right;">
<input size="40" style="border:solid 1px #675f39; padding:4px 2px; font-size:12px;" type="password" name="veri">
</span>



<br><br>
<hr>


<center>
<input name="chpass" id="submit" type="submit" value="Change Password" >
</center>

</form>
It gives style to the form, but no to the buttons, thats exactly what I wanted.

I made it direct and removed the css from the top of the page.
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 09:39 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
OMG, GTFO!

Almost every thread I make gets spammed with this ****!
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 09:42 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
Okay, well I have done it my way and it works perfect.

I got a new problem:

I want this:

Code:
<span style="float: left;">
Main News Message: 
</span>
<span style="align: right;">
<textarea style="border:solid 1px #675f39; padding:4px 2px;" name="mainnewsmessage" cols="40" rows="8">
<?php echo $row['mainnewsmessage']; ?>
</textarea>
</span>
<hr>
I want the textbox to align at the right, right now its not working and aligning right next to the 'Main News Message:' text.

It would work before:
Code:
<span style="float: left;">
Main News Message:
</span>
<span style="float: right;">
<textarea style="border:solid 1px #675f39; padding:4px 2px;" name="mainnewsmessage" cols="40" rows="5">
<?php echo $row['mainnewsmessage']; ?>
</textarea>
</span>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<hr>
But I would have to add alot of:
Code:
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<hr>
to it...
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

Last edited by sith717; 11-07-2009 at 09:47 AM..
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 09:51 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
there is no style property of "align".

Instead of messing about with inline rules give give the items that need a style a classname.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 09:55 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
What do you mean?

Can I get an example of what you mean?


Quote:
input.somestyle {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.somestyle {
border:solid 1px #675f39;
padding:4px 2px;
}
for the texbox
Code:
<input size="40" class="somestyle" name="mainnewsimage" value="
<?php echo $row['mainnewsimage']; ?>">

for the textarea
Code:
<textarea class="somestyle" name="mainnewsmessage" cols="40" rows="5">
Something like that?
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

Last edited by sith717; 11-07-2009 at 09:58 AM..
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 10:01 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep.

...
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 10:08 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
Now about my old problem:

I want this:

Code:
<span style="float: left;">
Main News Message:
</span>
<span style="float: right;">
<textarea class="myform" name="mainnewsmessage" cols="40" rows="5">
<?php echo $row['mainnewsmessage']; ?>
</textarea>
</span>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<hr>
But I would have to add alot of:
Code:
<br />
<br />
<br />
<br />
<br />
<br />
<br />
to it...

My css:

Code:
<style type="text/css">
input.theform {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.theform {
border:solid 1px #675f39;
padding:4px 2px;
} 
</style>
What do I do about that?
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 10:38 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why does your signature state

"and CSS Coding, Logo and Web Design"

Yet you don't appear to have even basic knowledge of CSS??????

But I suppose I should be used to this by now!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 10:51 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
That didnt answer my question. :P

Il remove that.

Anyways, what attributes or properties do I use to align it?
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 11:36 AM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
<span>s do NOT need floating, they are inline elements that will "sit" alongside each other on the same horizontal plane.

and use margins instead of "loads of <br>s". Read up on CSS at W3Schools
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 11:49 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
Okay. So something like this??

Code:
<style type="text/css">
input.theform {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.theform {
border:solid 1px #675f39;
padding:4px 2px;
 margin-bottom: 100px;
} 
</style>
and

Quote:
<span style="float: left;">
Main News Message:
</span>
<span style="float: right;">
<textarea class="myform" name="mainnewsmessage" cols="40" rows="5">
<?php echo $row['mainnewsmessage']; ?>
</textarea>
</span>
<hr>
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 11:52 AM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
Instead I totally removed the span for the textfield but now its budding up right next to 'Main News Message'.

How do I align it to the right?
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 12:07 PM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use text-align in a BLOCK element
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-07-2009, 12:15 PM Re: Not giving button style
Super Talker

Posts: 115
Name: Not Telling
Trades: 0
Can you show me what you mean??

This is what I have atm:


---

Code:
<span style="float: left;">
Main News Message:
</span>
<textarea class="theform" name="mainnewsmessage" cols="40" rows="5">You may recognize the Poison Arrow pub and the aquanite from our Guaranteed Content polls. Everything in the Poison Arrow came from in-game suggestions and the forums. And thats not all: beware of aquanites...</textarea>

<hr>
and the css:
Code:
<style type="text/css">
input.theform {
border:solid 1px #675f39;
padding:4px 2px;
}
textarea.theform {
border:solid 1px #675f39;
padding:4px 2px;
 align: right;
}
</style>
__________________
MY MSN:
Please login or register to view this content. Registration is FREE

PHP, HTML, and CSS Coding, Logo and Web Design - Professionally done.
PM me anytime for HTML, PHP or web design help. I will be glad to help you out.

Last edited by sith717; 11-07-2009 at 12:26 PM..
sith717 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 02:21 PM Re: Not giving button style
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Just use a list.

http://www.modtalk.co.uk/_site/layout/form-in-list/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Not giving button style

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68403 seconds with 12 queries