Click here to Skip to main content
15,890,185 members
Everything / Web Development / CSS

CSS

CSS

Great Reads

by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Chris Maunder
Some tips and tricks to help you format your articles and tips simply and consistently.
by Robert_Dyball
Add JSON Web Token Authentication (JWT) using OpenIDDict to our ASP.NET Core + Angular 2 SPA. Source includes VS2015 and VS2017 versions.
by Member 4206974
FormGen, a JavaScript Form Generator

Latest Articles

by Member 4206974
FormGen, a JavaScript Form Generator
by Mark Pelf
Custom Breadcrumbs (CSS) for Bootstrap 5 framework
by KimJohnson
.NET Redis container and strongly typed data objects

All Articles

Sort by Updated

CSS 

30 Jan 2010 by #realJSOP
Since you didn't say why, I assume you want to freeze the header row of a table and allow the rest of the table to be scrollable. A little bit of google goes a long way...http://sourceforge.net/projects/freezepane/[^]It's javascript code, but it's supposed to be a better performer than...
1 Feb 2010 by #realJSOP
Don't know anything about that.
12 May 2010 by #realJSOP
We don't write people's code for them. Try Rent-A-Coder.
2 Jun 2010 by #realJSOP
Did you google "create charts with javascript"? When I did, I got over 4.6 MILLION hits.
24 Jul 2010 by #realJSOP
You probably can't do it without using javascript.
14 Mar 2011 by #realJSOP
Okay, you didn't like the last answer, try this one: Employee number* Employee name
16 Mar 2011 by #realJSOP
OnFingerHover? :)I think I'd go with option 3, except you made it a point to say "some" devices, as if to say *some* device DON'T have suppport (or excellent support) for it.BTW, Liquid Nitrogen is in short supply because of the Tsunami in Japan.
31 May 2011 by #realJSOP
Those of us that don't have a facebook account can't see it because it requires you to login. Question fail.The best I can suggest is to load up the page in your browser, "view source" of the page, and see if you can determine the name os the css style. If you can, see if you can directly...
1 Jul 2011 by #realJSOP
Add a cssclass attribute and set it to the desired pre-defined css class.
10 Jul 2011 by #realJSOP
You can't design your website assuming the next version of a given browser is going to be fixed, much less that there will be wholesale switch to the newer version immediately upon its release. Fix it now.Regarding the placement of the footer, what is your intent? Is the footer supposed to...
11 Jul 2011 by #realJSOP
No. We can't give you the templates because we don't have them. If they put their templates info files, you may be able to get to them by viewing the source of the ebay web page, finding the file names in the section, and then browsing directly to those files. No guarantees that's gonna...
30 Jul 2011 by #realJSOP
Silverlight
31 Jul 2011 by #realJSOP
Go here[^]
12 Aug 2011 by #realJSOP
For Style tags, the HTML standard says they go there. For script tags, it depends on the script and its function. If you're loading a .js file, it goes in the head section. If you want the code to execute as part of the rendered page and it doesn't live in a method, and if we're talking about...
24 Aug 2011 by #realJSOP
Epic fail.This essentially qualifies as spam.
27 Nov 2011 by #realJSOP
At the end of each row, you need to have a div that clears the float.
26 Mar 2019 by #realJSOP
Make sure the radgrid control is compatible with the version of bootstrap that you added. Bootstrap 4 is a radical departure from bootstrap 3. Attempting to view tabular data in a grid on a phone is, well, stupid. There's no way you can display a data grid in a meaningful way on a screen that...
5 Apr 2019 by #realJSOP
If you want it on the right, why are you using float:left? Also, you're using position:fixed. I believe this will prevent float from working at all. Beyond that, we don't have any idea what your markup looks like, so we have no real idea how the CSS you posted will affect it.
6 Apr 2019 by #realJSOP
BWA HA HA HA HA!!!!!! Seriously!?
25 Jun 2019 by #realJSOP
Look at the Dev debug console in your browser and see if it can even find the file. (look for the "Network" tab in the console). It will show you the HTTP result code (usually 200 or 404), and if the result code is 404 it can't find the file. If that's the case, you'll have to modify the...
21 Jul 2019 by #realJSOP
Clear your browser's cache. It happens to me quite frequently.
2 Jun 2022 by #realJSOP
Using Bootstrap 5 I want to change the background color of the login credential text input controls I can change the control's background, but there's a yellow mask being applied that keeps me from realizing my nefarious plan. Does anyone know...
2 Jan 2014 by $*Developer - Vaibhav*$
how to change a textbox text font style using C# windows application[^]
22 Jan 2023 by $ultaNn
i am trying below code to print only from javascript without html popup page var a = window.open('', 'PRINT', 'height=900,width=600'); a.document.write(''); a.document.write( '' + ...
29 Jun 2021 by - srybczyk-
I am interested in making a website that allows users to check if a certain item is in stock or out of stock. I know that it might be JavaScript and CSS tables but I am not sure. I know people who are making python tools but I am interested in...
9 Jan 2014 by .net-learner
Hello Everyone, am planning to work on a complete .net project (front end + back end) which involves all the technologies. So, are there any websites or links or E-Books which helps and guides us with step-step process explanation and screen shots(if available). I would really appreciate if...
22 Nov 2013 by .NetDeveloper09
Is there any solution or complete solution to cross browser compatibility issues, can any one help me please
22 Nov 2013 by .NetDeveloper09
i solved it myself thanks for help everyone
13 Sep 2014 by /\jmot
you can do this by using 1. Jqury2.from Code Behind when the button is clicked(btn_Click event)Sol1.you already got it [Solution by MuhammadUSman1]Soln 2by using.button.attribute.add("cssclass","class Name")
14 Sep 2014 by /\jmot
Store all branches in your database with their address.trywhen you are going to show the addresses in a MAP, then find their longitude and latitude using code, and place it in your map(using loop).
7 Dec 2022 by 007 007
These are the errors I've been getting: WARNING in [eslint] src\Header.js Line 19:22: 'dispatch' is assigned a value but never used no-unused-vars src\LogIn.js Line 10:10: 'state' is assigned a value but never used no-unused-vars...
20 Dec 2022 by 007 007
So, I'm able to create an account and to successfully get to the MyAccount page, see who's currently logged in to MyAccount page and log out of the MyAccount page (MyAccount.js). However, when I try to log in using an email + password by pressing...
7 Jan 2023 by 007 007
The application is working perfectly, and the Navbar behaves as expected. However, I don't know why the spacing between my components got suddenly messed up. - App.css doesn't contain anything/doesn't have any code Here's my Index.js: ...
22 Jul 2022 by 0x01AA
Warning: I'm absolute beginner with CSS, but after some readings I would say the selector for span tags inside h2 tags is h2 > span. And therefore the rule 'Add a CSS rule for all span elements that are children of h2 elements that sets the text...
20 Oct 2019 by 123arvind123
Hi Guys, I am using a dropdown list in my apps.The dropdown have near about 100 entries.I want to display first 10 entries and for the remaining entries i want to display a scrollbar for that. Is anyone have any idea that how to accomplish this? You can...
9 Aug 2011 by 123arvind123
you can use position:fixed in your css code for the div which you want to fixed.
16 Jan 2022 by 123usersomeone
I need to write a loop which adds 10 div elements and sets the contents to the count value ( 1, 2, 3, …). Set the color of the first five elements are red and the last five elements are green using these methods : attr(), property() and style() ...
17 Jan 2022 by 123usersomeone
If the element in my array is a character I want to display the element with red color and if the array element is an integer I want to display the element with purple color. What I have tried: This is the code I have so far. I cannot figure...
17 Jan 2022 by 123usersomeone
I have a csv file with data like this PassengerId,Pclass,Name,Sex,Age,SibSp,Parch,Ticket,Fare,Cabin,Embarked 892,3,"Kelly, Mr. James",male,34.5,0,0,330911,7.8292,,Q 893,3,"Wilkes, Mrs. James (Ellen Needs)",female,47,1,0,363272,7,,S and so on ...
7 May 2014 by 2012programmer
Hi Everyone,I am designing a webpage using HTML5 and CSS. My webpage has a picture silder. The images of the picture slider are showing in balck&white when view it from Mozilla Firefox or google chrome.But when view it from Internet explorer then all the images are showing in color.And...
21 Jul 2018 by 2065
What is wrong in this Html code? What I have tried: home body { font-family:Arial,sans-serif; background-color:gray; color:red; } header { background-color:black; color:White; } hello i'm from...
23 Apr 2013 by 210032278
I have a sitemap( Web.sitemap) taht is working with all the menu like Home, Contact Us...So i do not know how to insert an icons to all the menu.This is a table that i called the sitemap ...
27 Apr 2022 by 22bears
As the title says, i'm building a website that is a product add / product list, etc... thing is, when the screen is fully open, buttons are well placed and well positioned, everything OK. but when i change the size of the window, they get all...
27 Apr 2022 by 22bears
It was an error in the container! container-fluid that fixed it
25 Sep 2015 by 23741
Have a look here:http://bavotasan.com/2011/a-simple-fade-with-css3/[^]
14 Jul 2015 by 34nilesh
How to generate binary tree(graphically) dynamically using HTML css java script and xml.Tree should be generate according to XML data (parent child relationship).
24 Jan 2008 by 3sL
Getting that 1 record out of 1000000+ records with these convenient controls.
29 Nov 2022 by 74_Shubham Mourya [CO]
I am making cryptocurrency tracker and predictor web application for final year project. Can anyone please help me with what should i do:? We thought of making crypto tracker using APIs and predictive analysis model predicting the closing of...
17 Jun 2019 by @Aradhana_Singh
I know how much I struggled when first working with Angular2+ on the hybris platform, so this is for those with the same challenge.
26 Aug 2017 by @Shiv
Easy and simple ReCptcha tool for Web Application in pure C# code, no JavaScript external plugin required
28 Apr 2014 by [NOPE]FOREV3R
I have two forms, one on its own html page inwhich I use javascript for validation of inputs.I have another html page called formok.html where if the form that the user is filling out is valid then the user is redirected to formok.html.In form.html I have a div where the will be filled...
29 Jun 2012 by _Amy
Hi,The background of the website which you provided is not having background color.It is having background image. Here[^] is the image of that website.Follow the links below to have some interactive design in your website:http://blog.myfreetemplatehome.com/[^]...
1 Jul 2012 by _Amy
Hi,Use this class for table:.table{ border:1px solid #92b7d0; padding:10px 40px; background:#E2E8F1; /*#f6f6f6;#dddddd;a1a1a1*E2E8F1*/ width:100%; border-radius:8px; -moz-border-radius:8px; /*Firefox 3.6 and earlier */}--Amit
2 Jul 2012 by _Amy
Hi,Here you go:http://www.infscripts.com/43-menu-with-rounded-corners-in-css.html[^]http://www.virtuosimedia.com/dev/css/css-rounded-corners-menus[^]All the best.--Amit
24 Jul 2012 by _Amy
Hi,Follow the links below:http://stackoverflow.com/questions/5789014/how-to-create-a-button-dropdown-like-facebook[^]http://sammaye.wordpress.com/2010/01/23/facebook-style-css-jquery-drop-down-menus/[^]http://173.203.115.147/wordpress/html/facebook_dropdown.html[^]All the best. Let...
30 Jul 2012 by _Amy
Hi,Refer the links below:ImageButton Control in ASP.NET[^]MSDN : mageButton Class[^]MSDN : ImageButton.OnCommand Method [^]MSDN : ImageButton.OnClick Method [^]And also:Understanding the JavaScript __doPostBack Function[^]--Amit
1 Aug 2012 by _Amy
Hi,backgroun...
7 Aug 2012 by _Amy
This is because you are not taking care of cross browser compatibility. Some of the css doesn't support all the browsers like "Rounded Corner" .Refer the links below:The Principles Of Cross-Browser CSS Coding[^]15+ techniques and tools for cross browser CSS coding[^]--Amit
28 Aug 2012 by _Amy
Setting the overflow will take care of scrollbars, but you need to set the height of div also. If the height attribute is not set, the div will grow vertically as tall as it needs to, and scrollbars wont be needed.See Example here[^].--Amit
4 Sep 2012 by _Amy
There are many similar articles for that. Refer the links below:Table sorter[^]HTML TABLE Sorting[^]Filtering or searching an HTML table using JavaScript[^]JavaScript sort table[^]33 JavaScript Solutions for Sorting Tables[^]All the best.--Amit
17 Sep 2012 by _Amy
You should try -ms-scrollbar-arrow-color property[^] to change the color of scrollbar.Otherwise you can use this css:html { scrollbar-base-color: #9999cc; scrollbar-arrow-color: white; scrollbar-track-color: #ccccff; scrollbar-shadow-color: black; ...
21 Oct 2012 by _Amy
Why you want only div? It could be anything, but the matter is, 'It should look like modal popup'. Refer the links below:Simple jQuery Modal Window Tutorial [^]Jquery Modal Popup Dialog[^]14 jQuery Modal Dialog Boxes[^]7+ jQuery Modal Popup Window Plugins With Tutorials, Demo and...
19 Feb 2013 by _Amy
What about using GridView[^]?Refer the links below:GridView example: how to use GridView in asp.net[^]ASP.NET GridView samples and examples[^]GridView Tips and Tricks using ASP.NET[^]--Amit
4 Jun 2013 by _Amy
If you ask me, I'll choose ModalPopupExtender[^], because we can easily customize it according to the need.--Amit
24 Jul 2014 by _Amy
Try this:@Html.TextBoxFor(m => m.MyDate, new { Value = Model.MyDate.ToString("DD:MM:YYYY")});   -Amy
26 Jul 2014 by _Amy
I would recommend you to go through the links below:Creating a DropDownList for Enums in ASP.NET MVC[^]How to simple Html.DropDownListFor MVC.NET[^]    --Amy
28 Jul 2014 by _Amy
Use jQuery to do the same. $(function () { $("[name='DropdownID']").change(function () { $("#TextBoxID").val($(this).val()); }); });--Amy
24 Aug 2014 by _Amy
You can check the item type in ItemDataBound Event. Then try this:if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem){ MyCount += Convert.ToInt32(DataBinder.Eval(e.Item.DataItem, "column_name"));//MyCount is variable which is declared...
14 Oct 2015 by _Amy
OK then let me google that for you.Google[^]See the top links.Ajax Tab Container Css Styles /Themes[^]Change the style of ajax TabContainer in asp.net[^]AJAX Control Toolkit – Tab Control – Themes[^]And also see : How to: styling the ASP.NET AJAX TabContainer control[^]--Amy
19 Oct 2015 by _Amy
Try this:.tabstyle .ajax__tab_body{ background-image:url('Image/TabBackground.jpg') !important;}--Amy
26 May 2014 by _Asif_
Check this link.Vertically rotate text inside an html table header cell[^]
8 Jul 2010 by _iobuf
Hi, I am trying to add an elipsis for some text inside a div using css.for example, WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWhat I want is for the end result to look like: WWWWWW...Or at least just cut off without the ....The div is inside a td which stretches out...
25 Jul 2018 by _jaws_
Currently my application is running using **ASP.net WebForms** and **Telerik**. Right now, I am working in administration dashboard. Inside dashboard there is a left side menu which can be expanded or can be collapsed.Let me show you its code,
24 Jan 2012 by _Maxxx_
If I understand what you want then this[^] post will do it for you (scroll down a bit and some code is included)One of the (many) places I visited when doing lesson plans for teaching CSS to schoolkids!
4 Feb 2014 by _Maxxx_
Don't refresh the page - that will solve the problem.Sorry - couldn't resist.You should try giving more information if you want people to help - is the page static or dynamic for example?For debugging I would look at the source from each browser and compare it before and after each...
29 Jul 2012 by _Raj sinha
use this code test good luck
1 Nov 2011 by _Tushar Patil
Try it Out..........
14 Nov 2011 by _Tushar Patil
Hi,If you are using CSS for Grid view then try to Increase size of the cells of grid-view.I have Faced Same Problem...
23 Nov 2011 by _Tushar Patil
Hi ,I want Css For Calender control And Menu Control...Some Good Links.....?Thanks In Advance....