CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/21/2006 4:51:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Web-NewBee
Asp.Net User
Difference between Master page and CSS?3/21/2006 4:51:48 PM

0/0

Hi,

I am new to web development, so please don't mind my ignorence.

I am currently going through the videos and tutorials and specifically I covered certain aspects of CSS(Cascding Style Sheet) and Master pages. Even after extensive and repeated reading I tend to get the feeling that both CSS and Master pages are intended to solve the same problem.  But not sure whether my above assumption is correct and I guess there would be significant difference between the two.

I would appreciate if some one could elaborate on the differences between CSS and Master page or point to any pre-existing link which elaborates this aspect. If it is distinctly different what is the right scenario to apply CSS & Master page. Or can we combine both in a single web site.

Any response is greatly appreciated.

Thanks,

-Bala.

Big Smile [:D]

jminond
Asp.Net User
Re: Difference between Master page and CSS?3/21/2006 5:52:54 PM

0/0

Master Pages are more pfor the physical layout of you HTML, more like a template for your pages.

So you would but your table strucutre, headers, and objects in the master page. Then yo page is associated to a master page, and it will take on that wrapper HTML.

CSS - in 2.0 is meant to go inside a theme, app_themes, and themes are more like "clothing" for your app. CSS lets you do things like colors, fonts, positioning, and much more, but it does not actually have an HTML elements in it. It is a definition of style for the HTML elements in yoru page.

You would use CSS to "dress" the html in your master page.

So in yo master you might have something like

<asp:label runat="server" cssclass="myclass" .....

and in your css

.myclass{ color:red; font-size:15px;}

what will happen is when the page renders, it will include the label from the master page, and whatever text in that label, will be assigned the myclass css class which will cause the browser to paint that label red and font size of 15 pixels.

 


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
MorningZ
Asp.Net User
Re: Difference between Master page and CSS?3/21/2006 6:43:45 PM

0/0

Web-NewBee wrote:
I am currently going through the videos and tutorials and specifically I covered certain aspects of CSS(Cascding Style Sheet) and Master pages. Even after extensive and repeated reading I tend to get the feeling that both CSS and Master pages are intended to solve the same problem.  But not sure whether my above assumption is correct and I guess there would be significant difference between the two

I'd be curious as to an exact example that leads you to believe that... they are as different as dogs and cats....

MasterPages are a way to include common items across your application, whether it be controls (like a menu) or placeholders for content.. at the end of the page cycle, the controls from the MasterPage and the Content page are merged together to form one single HTML entity that gets sent to your client

CSS does none of that....


"If you make it idiot proof, they'll build a better idiot"
jminond
Asp.Net User
Re: Difference between Master page and CSS?3/21/2006 7:13:01 PM

0/0

Master pages standarizes your HTML for your site.

CSS standarizes your look for your site.

CSS is not HTML, it is sued by the browser, to style the HTML that was renderd.

Master pages directly render HTML to the browser.

Master Pages Contain HTML which uses CSS.

CSS is a tool to be used by HTML which is generated by a amster page.

I am not sure how else to clarify.

 


Jonathan Minond
http://www.Jonavi.com
http://www.jonavi.com/Default.aspx?pageID=21
http://RainbowBeta.com
http://community.rainbowportal.net/blogs/jonathans_rainbow_blog/default.aspx
http://dotnetslackers.com/community/blogs/jminond/default.aspx
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Professional Community Server Authors: Wyatt Preul, Keyvan Nayyeri, Jose Lema, Jim Martin, Pages: 311, Published: 2007
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Mastering Integrated HTML and CSS: Integrate HTML Or XHTML and Cascading Style Sheets for Best Results. Master Key Techniques and Improve Your Productivity Authors: Virginia DeBolt, Pages: 600, Published: 2007

Web:
CleverWorkarounds » SharePoint Branding - How CSS works with ... First some basic master page theory, then I will talk about the difference between ... A master page can also contain the cascading style sheet (CSS) and ...
Introduction to the ASP.NET Master Pages Template Set In short, the main difference between the two properties is the position in ... CSS allows a page author to exert a significant amount of control over the ...
Difference between Master page and CSS? - ASP.NET Forums I would appreciate if some one could elaborate on the differences between CSS and Master page or point to any pre-existing link which ...
AJAX UpdatePanel Trigger + MasterPage Senario : updatepanel ... I am running a MasterPage configuartion with Registered Web User Controls ... 1, Masterpage and CSS problem · CSS. 2, Margin top difference between IE and ...
Joel Oleson's Blog - SharePoint Land : Master Page and Themes on ... Go to Master Page, scroll to the bottom, choose Specify a CSS file to be used ... There is a difference between site.master and system.master in relation to ...
Minimal Master page in Sharepoint Designer - Neil's IW Space Dec 5, 2007 ... Master and Placeholders". The main difference between ... site is also control via multiple CSS files associated with the master page. ...
Heather's Base Master Page File for SharePoint 2007 Are there any differences between default.aspx and simple.aspx that ... I suspect I use the CSS overview daily and this masterpage resides on my desktop. ...
A strange problem with Master Page and CSS - ASP.NET Forums In the CSS file i have \which i linked in the Master Page\ : .... render different HTML, there can even be differences between IE and FF. ...
how to reference multiple css files on a master page? - ASP.NET Forums I'm having trouble getting a master page to reference 3 css files (one for .... The only major difference between the 2005 and 2008 code, ...
Moustafa Arafa - C# MVP: Which Master Page Shall I Use in Built-In ... i am creating my own masterpage and CSS for a team site by using share point designing 2007.how to ... Today Tip : Difference between Asynchronous & Asyn. ...

Videos:
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










3.0.11 demo signup and site wizard

problems uploading and running modules in dnn 2.1.2

how to access a control in master page?

returns nothing directory.getfiles("c:\", "*.*")

server error in '/dotnetnuke' application

designer problem: providepropertyattribute not serializing in webform

floating menu options in menu bar

windows 2003 iis 6.0 & aspnet user account problems

content based on conditions module for dnn 3.x

adding atlas to club kit

3.2 upgrade .. runtime error

there is a problem with your selected data store

enum property defaultvalue appears bold?

can't see "server objects and events" from drop-down list

exception from hresult: 0x8007007e

will dnn 2.0.4 fix dns issues?

urlcontrol in v2.1.2

asp.net forum and dnn

add control to webpart

dnn 3 upgrade bug? ability to edit stock modules

setting up user groups and restricting access

cannot apply style/skin to usercontrol please help

two problems with digital certificate security...

dnn xxl 1.0.10 - prefered language acted upon

get my documents folder

ohhh 3.0.10 is also a beta ...

javascript dynamic menu with master page

how to grab the click event ?thanks

dnn drag and drop

problems installing gallery module from the dnn site

 
All Times Are GMT