Jump to content

Fundamental Understanding.


pjdevins@yahoo.com

Recommended Posts

Hi,

I have been reading a lot of tutorials and researching CSS for the past week and I feel like I am just not getting it. Maybe I'm just missing a key concept or something or I just may have it all wrong. I thought the whole concept was that I could use CSS to apply formatting to all of the elements in my page in one place without having to repeat the same code over and over again. I develop web applications in .net and I have been tasked with trying to combine about 10 different applications into one and make them all have the same color scheme. I though I could set up a CSS file to make all of the data grids, buttons, drop downs and other user controls look the same and at the same time format the application without using tables. I am having problems with understating how to write the CSS for anything other than div,

, a , etc. I feel like I almost understand what to do, but it is just not coming together for me. Okay so I have rambled on and I don't even know if I am asking the right type of question. Can anyone help?

---Dazed and confused. :D

Link to comment
Share on other sites

Sounds like you have the basic concept of CSS correct -- it is used to apply styling to elements of the website in one place.

 

However, CSS just effects visual styling -- not the underlying structure of the code. For example, in order to change a site from a table based layout to a div based layout, you have to do more than CSS changes. You would need to go into the code of the site and recode it using divs rather than tables, and then adjust the CSS styling.

 

Also, a lot of CSS requires you to add classes or id's to your code, so that CSS can be used to target just that element. That would require you to go into the original code and add classes/ids as necessary. Then, you can properly target those elements using CSS:

 

.class { css code here... }
#id { css code here... }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...