Current location: Hot Scripts Forums » General Web Coding » CSS » Css help


Css help

Reply
  #1 (permalink)  
Old 05-15-04, 03:06 PM
Netbreak Netbreak is offline
Newbie Coder
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Css help

http://www.netbreak.moonfreehost.com/poll.php on this poll, i want to change the submit button... a friend of mine told me i could only use css to do that... but neither him or i know how to work with css... anyone can help? If the page code is needed please inform me=(((
Reply With Quote
  #2 (permalink)  
Old 05-15-04, 10:33 PM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Netbreak
http://www.netbreak.moonfreehost.com/poll.php on this poll, i want to change the submit button... a friend of mine told me i could only use css to do that... but neither him or i know how to work with css... anyone can help? If the page code is needed please inform me=(((
hello

in your input tag simply add class="votebutton" eg.

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px" class="votebutton"/>

then in the <head></head> section of the page add this:

<style>
.votebutton {
border: 1px solid #999;
background: #fff;
color: #222;
font-weight: normal;
font-family: verdana;
font-size: 9px;
width: 60px;
background: #eee;
}
</style>

you can fiddle around with border background and font to get it the way u like.
__________________
henerz
Reply With Quote
  #3 (permalink)  
Old 05-16-04, 05:09 AM
Netbreak Netbreak is offline
Newbie Coder
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Henry
hello

in your input tag simply add class="votebutton" eg.

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px" class="votebutton"/>

then in the <head></head> section of the page add this:

<style>
.votebutton {
border: 1px solid #999;
background: #fff;
color: #222;
font-weight: normal;
font-family: verdana;
font-size: 9px;
width: 60px;
background: #eee;
}
</style>

you can fiddle around with border background and font to get it the way u like.
i get the head tag but whats with the imput thing? i didnt get it. I repeat i don't knwo damn about css(sorry for being such a pain in the ***)
__________________
- N3mo - DulT - netbreak -
Reply With Quote
  #4 (permalink)  
Old 05-16-04, 06:55 AM
razvan razvan is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
The "input" thing is the submit button!
Reply With Quote
  #5 (permalink)  
Old 05-16-04, 07:08 AM
Netbreak Netbreak is offline
Newbie Coder
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by razvan
The "input" thing is the submit button!
the script just says to put this code

<?php require '/home/netbreak/public_html/Polls/booth.php';
display_booth(1); ?>

on the part tha twe want to the poll to appear...

My poll is from fusion...so where's the file to imput and chage...
__________________
- N3mo - DulT - netbreak -
Reply With Quote
  #6 (permalink)  
Old 05-17-04, 03:38 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
im guessing it would would be in the booth.php file. open that file up and look for:

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px">

and replace it with:

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px" class="votebutton"/>

still leaving that <style> bit up in the head section
__________________
henerz
Reply With Quote
  #7 (permalink)  
Old 05-17-04, 06:49 AM
Netbreak Netbreak is offline
Newbie Coder
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Henry
im guessing it would would be in the booth.php file. open that file up and look for:

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px">

and replace it with:

<input type="submit" name="s_boom" value="Votar!" style="font-size: 10px" class="votebutton"/>

still leaving that <style> bit up in the head section
thank u dude
__________________
- N3mo - DulT - netbreak -
Reply With Quote
  #8 (permalink)  
Old 05-18-04, 04:54 AM
Henry's Avatar
Henry Henry is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: Brisbane, Australia
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
no worrys mate
__________________
henerz
Reply With Quote
  #9 (permalink)  
Old 07-16-04, 08:24 PM
lazybrit lazybrit is offline
Newbie Coder
 
Join Date: May 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
or you can just put this in the stylessheet

input, button {
border: 1px solid #000000; //border color
background: #ffffff; //background color
color: #000000; //font color
font-size: 12px;
width: 100%;
padding: 3px;
margin: 0px; }

No font style or family is needed, that should be in the body tag
Reply With Quote
  #10 (permalink)  
Old 07-17-04, 12:44 AM
studenteye's Avatar
studenteye studenteye is offline
Newbie Coder
 
Join Date: Jul 2004
Location: UK
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb change submit button with out css

if you don't know how to use css then another simple way to change submit button.

1: make an image looking like button ( *.gif, *.jpg *.png )

2: give path of image in SRC="images/button.jpg"


<INPUT type="image" Src="path of button image" Title="tooltip" />
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any Good tutorials? mysticalmaze CSS 6 06-30-04 04:49 AM
css generator frank1002 Job Offers & Assistance 2 05-09-04 07:54 PM
css generator frank1002 Script Requests 0 05-07-04 03:29 PM


All times are GMT -5. The time now is 04:51 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.