•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Web Design Tutorials section within the Web Development category of DaniWeb, a massive community of 374,546 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,672 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Web Design Tutorials advertiser:
Views: 31106 | Replies: 3
![]() |
•
•
Join Date: Oct 2005
Location: Northampton UK
Posts: 1,139
Reputation:
Rep Power: 6
Solved Threads: 9
This thread is meant to facilitate comments about the tutorial entitled
Forms: styling text fields with CSS and HTML
Forms: styling text fields with CSS and HTML
•
•
Join Date: Sep 2006
Location: Broken Arrow, OK
Posts: 31
Reputation:
Rep Power: 2
Solved Threads: 0
Hello Roryt, Forum Members,
To minimize the differences of all elements in different browsers, you can add:
* {padding: 0px; margin: 0px} to your style sheet. This eliminates the default margins and padding for everything. Elements like for H1, h2..., <li> <input>, etc. have different styles in different browsers. This starts you off with a level playing field. You'll have to go back and add some margins and padding to elements you didn't have to style before however!
Peace
To minimize the differences of all elements in different browsers, you can add:
* {padding: 0px; margin: 0px} to your style sheet. This eliminates the default margins and padding for everything. Elements like for H1, h2..., <li> <input>, etc. have different styles in different browsers. This starts you off with a level playing field. You'll have to go back and add some margins and padding to elements you didn't have to style before however!
Peace
Last edited by okparrothead : Mar 6th, 2007 at 1:59 pm. Reason: I can't spell
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Web Design Tutorials Marketplace
•
•
•
•
advertising blog browser browsing code community css data design development devices domains dreamweaver firefox google html india internet java legal linux marketing merger microsoft mozilla msn multimedia news online php privacy report research revenue rss search security software sun symantec tutorials video w3c web web development wiki xml yahoo youtube
- Extending HTML Forms (JavaScript / DHTML / AJAX)
- HTML/CSS DIV help needed (HTML and CSS)
- Featured Writer (Geeks' Lounge)
- suggestion for [code] (DaniWeb Community Feedback)
- make css apply to a chunk of html (HTML and CSS)
Other Threads in the Web Design Tutorials Forum
- Previous Thread: Photoshop: add a white photo frame to your images
- Next Thread: Photoshop: create a transparent navigation bar



Linear Mode