hi, i find it more confusing and difficulty in adjusting div tages to adjust text, links, image etc..whenever
there is requirement to add or update css page , each time it is big headache for me to again adjust height and width pixels..
it is taking long time also.
In this scenario..i like to know from senior friends who already working on asp.net website development ..
1.do u use css in designing of webpages ...css or tables which is best method
2.if you use css how do you manage...
3.as we cannot apply css to all controls..so do use themes and skin concept for designing
4.and importantly, i like to know if you use css means you dont use asp.net controls.So, that means you write all
validation code in javascript only. In this scenario...i like to know,is it ok to write validations in javascript rather than
validation controls in asp.net. Is companies allow that kind of development.
5.if possible please give me the link of the website you design recently, so that i have an idea of where u used css .
thankyou very much
arun
hj jhPosted Aug 21, 2012, 9:09 AM
1: well there will be cross browser compatability issues in css as well.
Certain css will not be supported by IE while mostly all are supported by firefox & chrome(the most used browsers).
Also note that now when html5 & css3 are coming up, css issues are also high due to new standards but soon they are hoped to get solved as & when new versions of browsers come up.
But for developers, it would be better if the design is made such that it is compatible with all browsers as much as possible
Like mostly for rounded corners we have to specify seperately for IE,firefox,chrome,etc.
So try to use most common properties to keep it compatible with all browsers else for some cases , specify it seperately.
2: Well, in huge companies, each task is allocated to its dedicated expert like designing to designer, coding to developer, queries & SP to DBA but otherwise a developer should have knowledge of all technical aspects and also should be able to design the website.
Please mark answer if your problem is resolved
arun kumarPosted Aug 21, 2012, 10:05 AM
Please give me an example link of website that is designed in asp.net and tell me how much time it has taken from staring to finishing till deployment.(if we assume the site is developed in a small company and programer himself do all including designing.)
2.Please tell me roughly how much time one has to complete in case of website applications like hotel mgnt, tours and travel sites...If you are not into this kind of development ,please share your friends knowledge which you have heard about this kind of website development.
3. Who will do deployment generally in companies.
4. I think after designing the site one has to check that site in various browsers. so we should have all browsers in our desktop. right.
thanks in advance.
bye
arun
arun kumarPosted Aug 21, 2012, 7:25 AM
Though still i need some clarifications your answer gave very useful explanation. thankyou.
I like to know...
1. If design websites with css with latest properties...then it is not shownup (display) in IE..and some properties did not display in firefox. So, how to do solve this problem.
For example if you work on vs2010 it dont support corner boxes it supports upto css3.0 properties. Then how do u design and what points you take care of while designing with css.
2.Is designing is webdesigners duty or it has to done by programmer it self.
Thankyou
arun
hj jhPosted Aug 21, 2012, 2:00 AM
Also note that a website can be designed by forming its basic structure of "DIV" or "tables"
Both has its own set of pros and cons
Tables:
Designing using tables is easier as you can fix the height and widths easily but tables take more bandwidth of network.
So if you have a webpage where in you have defined multiple nested tables then your innermost tables will not be loaded till its outer tables are loaded hierarchically which results in little high loading time.
DIV:
Designing using div tags is little different as compared to tables as fixing the styles specially alignments is little different and time taking.
DIV tags give a more professional outlook to your website to maintain the hierarchy.
Generally , tables should be used when used without much nesting but when the site's design requires nested elements then , div's should be used.
CSS can be applied to both and all elements so it can be applied to "DIV" as well as to "tables" and other elements as well.
Most professional designers use div tags & style it using css.From SEO point of view too, "div" tag designing is more preferable than tables
2 & 3: css can be applied to all elements as well
Like if you write in stylesheet as:
p
{color: red;}
Then all the p tag in the entire website will have red color fonts.
But mostly such styling is not preferred.styling the tags requires skills.
Like put the common properties that would be used in the same way in the entire site for tags.
Suppose throughout in your site , you are going to use green font color then you can put it for all elements instead of individual class application to elements
Like: .p,.a, .h1 ,.h2
{
Color:green;
}
Themes are similar to cascading style sheets in that both themes and style sheets define a set of common attributes that can be applied to any page. However, themes differ from style sheets in the following ways:
· Themes can define many properties of a control or page, not just style properties. For example, using themes, you can specify the graphics for a TreeView control, the template layout of a GridView control, and so on.
· Themes can include graphics.
· Themes do not cascade the way style sheets do. By default, any property values defined in a theme referenced by a page's Theme property override the property values declaratively set on a control, unless you explicitly apply the theme using the StyleSheetTheme property. For more information, see the Theme Settings Precedence section above.
· Only one theme can be applied to each page. You cannot apply multiple themes to a page, unlike style sheets where multiple style sheets can be applied.
For more details, check out this link:
http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx
4: css can be applied to server controls by providing the attribute of class or cssclass depending on the control.
Different companies have different policies of website development.
Some strictly use the built in validators available in visualstudio for validations while some companies prefer to write their own frameworks with all custom validations written on their own.
But ultimately both work on client side.
You can check following link for writing css in efficient manner:
https://developer.mozilla.org/en-US/docs/CSS/Writing_Efficient_CSS?redirectlocale=en-US&redirectslug=Writing_Efficient_CSS
http://meyerweb.com/eric/css/references/css2ref.html
Please mark this answer as accepted answer if it resolves your problem.