Create Portfolio website HTML & CSS only ✅ Part - 1

frontendzone
25 Sept 202421:32

Summary

TLDRThe video explains how to create a portfolio website using VS Code. It covers setting up a new folder, adding essential files like index.html and main.css, and formatting with Prettier for clean code. The process includes building a responsive header with navigation links using HTML and CSS, focusing on elements like header, footer, and navigation. It demonstrates using CSS Flexbox for layout alignment and adding a banner section with an image and content. The video emphasizes on proper spacing, styling, and media queries for responsive design.

Takeaways

  • 😀 The video script is a tutorial on how to start a project using HTML and CSS.
  • 📂 It begins by creating a new folder in the documents for organizing the project files.
  • 💻 The instructor opens the VS Code editor to start working on the project files.
  • 🎵 Background music is played during the tutorial to make it engaging.
  • 📄 The script mentions creating an index.html file, which is essential as the root file for any repository or folder.
  • 💡 The use of Prettier for code formatting is highlighted to maintain a clean and consistent codebase.
  • 🌐 The tutorial emphasizes the importance of semantic HTML elements, such as header, main, and footer.
  • 🔗 It discusses how to structure the navigation menu within the header using unordered lists for better SEO.
  • 🖌️ The script covers basic CSS styling, including setting font family, margins, and box-sizing.
  • 📱 Responsive design principles are introduced with a focus on using media queries for different screen sizes.
  • 🖥️ The tutorial demonstrates creating a banner section with an image on the left and text content on the right, emphasizing alignment and layout.

Q & A

  • What does the speaker start with in the video?

    -The speaker starts by opening a new folder in their documents to create a portfolio.

  • What does the speaker name the new folder created for the portfolio?

    -The speaker names the new folder 'portfolio'.

  • What is the purpose of creating an 'index.html' file as mentioned in the script?

    -The 'index.html' file is created because it serves as the root file for any repository or folder, especially important if building a website.

  • Why does the speaker emphasize the use of 'prettier' in the script?

    -The speaker uses 'prettier' for code formatting to ensure that the code remains consistently formatted.

  • What does the speaker suggest setting the line width to in the 'prettier' configuration?

    -The speaker sets the line width to 80 characters in the 'prettier' configuration.

  • What is the significance of the 'header' in the context of the HTMl structure discussed?

    -The 'header' is significant as it typically contains a logo which can be directly linked to the homepage for easy navigation.

  • What navigation structure does the speaker recommend placing inside the 'nav' element?

    -The speaker recommends placing a navigation bar inside the 'nav' element, which should be semantic and helpful for search engines.

  • What does the speaker do to open the live server alongside the code?

    -The speaker opens the live server alongside the code to ensure that changes in the code reflect in real-time on the browser.

  • Why is the 'flex' display property used when styling the navigation links according to the script?

    -The 'flex' display property is used to align the navigation links side by side, making use of the available space efficiently.

  • What is the purpose of creating a '.container' class as described in the script?

    -The '.container' class is created to wrap content and ensure it is centered and has a maximum width, providing a responsive layout.

  • How does the speaker adjust the header's design to make it look ready for a desktop view?

    -The speaker adjusts the header's design by setting a black background, ensuring the text color is white, and applying padding to the header elements.

  • What media query does the speaker use to make the header responsive?

    -The speaker uses a media query to adjust the header for mobile views, turning the horizontal navigation bar into a hamburger menu for smaller screens.

Outlines

00:00

💻 Setting Up a New Project

The speaker begins by opening a BS Code, creating a new folder in their documents named 'Portfolio', and opening it. They emphasize the creation of an 'index.html' file, which serves as the root file for any repository or folder. The speaker also discusses setting up prettier formatting, defining the type width to 80 characters for better readability. They mention opening the live server, side-by-side with the CSS code for easier editing, and adjusting the browser view. They then proceed to explain the basic structure of an HTML document, including the header, main, and footer sections. The header is highlighted as an important section for logo placement, which is typically done using the 'alt' tag for direct navigation purposes. The navigation menu is also discussed, emphasizing its placement within the header for better SEO.

05:00

🎵 Structuring the Main Content

In this paragraph, the speaker discusses the process of structuring the main content of the website. They start by creating a 'main' section and explain the importance of having a CSS file linked to the HTML for styling. They delve into the use of CSS selectors, resetting default styles like margins and padding, and employing box-sizing for better layout control. The speaker also covers the use of body properties, such as font family and text alignment. They explain how to display elements side by side using 'display: flex' and justify content for even spacing. The paragraph also touches on list styling, removing default list styles, and using 'text-decoration' to manage link appearances.

10:02

🖥️ Designing the Header

The speaker focuses on designing the header section of the website. They discuss the use of flex properties to align elements side by side within the header and the importance of a container class for global CSS application. They explain how to adjust the header's background color and manage the color properties of text within the header. The speaker also covers padding adjustments for better spacing and the use of media queries to ensure the header is responsive. They mention creating a class for the brand name and adjusting font weights for visual hierarchy.

15:06

🖼️ Creating a Banner Section

In this section, the speaker describes creating a banner section with a left-aligned image and right-aligned content detailing personal information. They discuss the use of HTML tags like 'img' and 'div' to structure the content and the importance of linking the image for navigation. The speaker also covers adjusting the image size and ensuring the content is displayed on the right side. They explain using flex properties for the parent container to align child elements and setting gaps for better spacing. The paragraph also includes instructions on adjusting the banner's height and managing the content size relative to the image.

20:08

📐 Final Touches to the Header and Banner

The speaker concludes the setup by adding padding to the header and banner sections, adjusting font sizes globally, and defining specific class properties for headings. They emphasize the importance of setting fixed sizes for images and ensuring that the banner's height adjusts based on the content size. The speaker also discusses the use of comments in CSS for organization and the implementation of auto-formatting settings for consistency. They mention the use of 'display: flex' for the banner's container and setting the display properties for side-by-side alignment.

Mindmap

Keywords

💡BS Code

BS Code likely refers to a codebase or a specific coding project the speaker is working on. In the context of the video, it seems to be the primary subject matter that the speaker is discussing and manipulating. The speaker mentions opening BS Code, suggesting it's a software or a file they are interacting with to build or modify a website or application.

💡New Folder

The term 'New Folder' is mentioned in the context of organizing files and documents. The speaker creates a new folder named 'Portfolio' within their documents, which indicates a step in setting up a project or categorizing work. This is a common practice in file management to keep related files together.

💡CSS

CSS (Cascading Style Sheets) is a stylesheet language used for describing the presentation of a document written in HTML. The speaker discusses writing CSS code, which is crucial for the styling and layout of web pages. They mention various CSS properties like 'margin', 'padding', 'flex', and 'display', which are used to control the spacing, alignment, and sizing of HTML elements.

💡Live Server

Live Server refers to a development tool that launches a local development server and provides features such as auto-refresh to reflect changes made to the code without needing to manually refresh the browser. The speaker mentions opening the project with Live Server, which is a common practice in web development to preview changes in real-time.

💡HTML

HTML (Hypertext Markup Language) is the standard markup language for creating web pages and web applications. The speaker discusses opening an HTML file, which is the foundation for structuring a webpage. They mention elements like 'header', 'main', and 'footer', which are standard sections in an HTML document.

💡Flexbox

Flexbox is a CSS layout module that provides a more efficient way to lay out, align, and distribute space among items in a container, even when their size is unknown or dynamic. The speaker uses terms like 'display: flex' to align elements side by side, which is a core concept in responsive web design.

💡Formatting

Formatting in this context refers to the process of arranging and styling code to make it more readable and organized. The speaker mentions adding 'prettier' formatting to keep the code formatted consistently, which is important for maintaining clean and understandable code.

💡Media Query

A media query is a CSS feature that allows content to be customized based on the user's device characteristics, such as screen resolution or device orientation. The speaker discusses using media queries to make the website responsive, ensuring that the layout adapts to different screen sizes like mobile devices.

💡Header

In web design, the 'header' typically refers to the top part of a webpage that includes the logo, navigation menu, and sometimes a headline or search bar. The speaker describes creating a header with a logo and navigation elements, which are essential components for branding and site navigation.

💡Navigation

Navigation in web design pertains to the menu or system of links that allow users to move between pages or sections of a website. The speaker mentions creating a navigation bar, which is crucial for guiding users through the website and providing access to different content areas.

💡Banner

A 'banner' in web design usually refers to a large graphic or image at the top or main section of a webpage, often used for branding, announcements, or promotional content. The speaker discusses creating a banner section with an image and text, which serves as a prominent visual feature on the webpage.

Highlights

Opening the project in a new folder named 'Portfolio'

Creating a new file named 'index.html'

Setting up a 'prettier' format for code styling

Opening the project with a live server and side by side with the CSS file

Defining the basic HTML structure including header, main, and footer

Adding a logo and navigation menu within the header

Setting up the 'section' with 'h1' tag for the main content

Writing CSS to style the header and main content

Using 'flexbox' to align items side by side

Adding 'justify-content' to center the content

Defining the 'list-style' to remove bullets from the navigation list

Setting 'text-decoration' to 'none' for links

Creating a container class for the header to align elements

Applying 'flexbox' to the header container to align left and right

Adding a background color to the header

Setting the color property of the header text

Adjusting the padding and margin for better spacing

Creating a responsive design using media queries

Adding a banner section with an image and text

Using 'flexbox' to align the banner content side by side

Adjusting the image size and container height for the banner

Defining global CSS styles for the container and heading

Increasing the font size for the heading in the banner

Transcripts

play00:00

सो अब हम यहां पर स्टार्ट करते

play00:03

हैं सो पहले मैं बीएस कोड खोल लेता हूं

play00:06

यहां

play00:07

पर इसके लिए मैं एक न्यू फोल्डर बना लेता

play00:10

हूं अपने डॉक्यूमेंट में जाके एक न्यू

play00:13

फोल्डर बनाता हूं पोर्टफोलियो मम से

play00:17

राइट माय

play00:19

पोर्टफोलियो

play00:25

और इसको ओपन करता हूं

play00:30

कोड के

play00:37

साथ क्या ओपन हो गया चलो यहां से ओपन कर

play00:40

लेते

play00:43

हैं डॉक्यूमेंट में जाके

play00:46

हमको जाना है माय पोर्टफोलियो में माय

play00:51

पोर्टफोलियो सो यह हमारा न्यू फोल्डर हो

play00:54

गया राइट अब हम इसमें अपना काम स्टार्ट

play00:57

करेंगे

play01:02

इसमें एक हम बनाते हैं इक्स डट

play01:06

एटीएम इक्सड

play01:09

[संगीत]

play01:10

एटील नेसेसरी है

play01:13

बनाना क्योंकि रूट फाइल होता है किसी भी

play01:17

रेपो का या फिर फोल्डर का ट अगर आप

play01:21

स्पेशली अगर आप वेबसाइट बना रहे हो

play01:24

तो

play01:27

सो एक और चीज यहां पर प्रेडियर

play01:31

फॉर्मेटिंग के लिए रख लेता हूं प्रेटर

play01:36

आरसी यहां पे कुछ डिफाइन कर लेते हैं टाइब

play01:39

विड्थ मेरा होना चाहिए

play01:43

फोर और य स्प्रिंट विड्थ लिख लेते हैं 80

play01:47

इतना काफी है ठीक है हालांकि ये ऑप्शनल है

play01:51

प्रेटर आरसी ऑप्शनल है ये जस्ट मैं

play01:53

फॉर्मेटिंग के लिए ऐड कर रहा हूं ताकि

play01:56

हमारा कोड है जो काफी फॉर्मेटेड रहे हमेशा

play02:01

तो अब हमको यहां पर करना क्या

play02:04

है इसको पहले मैं लाइव सर्वर के साथ ओपन

play02:06

कर लेता हूं ताकि य चीज हमारी लाइव ते

play02:10

रहे तो एक काम मैं और करूंगा कि इसको साइड

play02:15

बाय साइड ओपन कर लूंगा सीएस कोड को भी और

play02:18

इसको भी स यहां पर इसको क्लोज करता हूं और

play02:25

इस सीएस कोड को थोड़ा लार्ज करते हैं

play02:30

और इस ब्राउजर को रखते हैं

play02:34

इधर ताक अब हमारी चीजें जो है साइड बाय

play02:37

साइड हमको लाइव ते रहेंगे

play02:46

[संगीत]

play03:06

ठीक है यह हमारा फाइल हो गया अब इसमें

play03:08

एटील लिखेंगे तो बेसिकली जो एचटीएमएल के

play03:13

मेन कंपोनेंट होते हैं वो होता है क्या

play03:15

हमारा

play03:17

हेडर हेडर होता है फ

play03:23

मेन और फिर जो है हमारा होता है

play03:28

फटर अब हेडर में क्या होता है कि हमारा

play03:31

लोगो हो जाता है लोगो को हमशा एट में रखते

play03:35

क्योंकि हमको उसके क्लिक पर डायरेक्ट करना

play03:36

होता हो पेज पर सो यहां पर मैं क्या

play03:39

करूंगा के अंदर एच जाएगा और यहां पर हमारा

play03:43

फोटो या तो इसके अंदर आप लोगो रख सकते हो

play03:46

या फिर अपना नाम रख सकते हो मैं अभी के

play03:49

लिए य पर अपना नाम रखता हूं अष

play03:53

कुमार ठीक है य आ गया

play03:57

और यहां पर दूसरी चीज जो होगी वो

play04:03

होगी हमारी

play04:10

नेव अब हमारा जो य नेव हम यहां पर यूल भी

play04:13

ले सकते थे बट हमारा ने यूल हमारा जो

play04:17

नेविगेशन होगा वह हमारा नेव के अंदर होगा

play04:20

क्योंकि ये सिमटिक एलिमेंट होता है जो कि

play04:23

हमारे सर्च इजन के लिए काफी हेल्पफुल होता

play04:25

है टू क्रॉल दिस कंटेंट

play04:30

और हमारा एल के अंदर केर हम क्या करेंगे ए

play04:35

के अंदर कितने चीज चाहिए एई के

play04:39

अंदर

play04:40

और एई के अंदर हमको चाहिए

play04:44

ए और यह चीज जो हमको चाहिए व चाहिए फ लेते

play04:52

हैं

play04:55

राइट केंद्र बन गया

play05:00

इसको मैं क्या करता हूं स्टार फाइ और ए

play05:05

ऐसा कुछ होता है शायद राइट ये हमारा पांच

play05:09

एलाई बन गया अब इसमें हम क्या करेंगे

play05:13

[संगीत]

play05:15

इ आते हैं

play05:18

इधर इसको मैं सेलेक्ट करता

play05:21

हूं

play05:24

अच्छा हमारा होम रहेगा अभी होम लिखा हमने

play05:27

तो यहां प पांच लिंक आ गए हमारे ठीक राइट

play05:30

अब हमारा हो होम आउट और एक हो जाएगा

play05:38

कांटेक्ट प्रोजेक्ट्स

play05:43

एंड

play05:45

रिज्यूमे राइट यह हमारा आ ग

play05:48

लिंक्स तोय हमारा बेसिक स्ट्रक्चर हेडर का

play05:51

तैयार हो गया अब आते है मेन

play05:55

पे तो बेसिकली हम पहले हेडर बनाते है राइट

play05:58

हेडर को पहले कंपलीट कर

play06:00

अब यहां पर चाहिए एक सीएसएस सो सीएसएस के

play06:03

लिए मैं क्या करता हूं यहां पर लिख लेता

play06:06

हूं मेन ड सीएसए और इस मेंड सीस को मैं

play06:09

लिंक करता हूं इसमें एटीएमएल में तो यहां

play06:12

पर क्या करना है आपको लिंक कॉलन सीएसएस और

play06:17

करना है आपको

play06:19

एंटर और यहां

play06:21

पे लोकेशन अपडेट करनी है क्योंकि हमारा

play06:24

डॉट स्ल मेन ड सीस के अंदर है अब हम क्या

play06:28

करेंगे मेन ड सीस में आपको करना क्या है

play06:31

कि पहले यूनिवर्सल सिलेक्टर यूज करना है

play06:34

और एटी की जो डिफॉल्ट स्टाइलिंग होती है

play06:38

उसको जीरो करना है मार्जिन जीरो पैंग जीरो

play06:43

राइट अभी चेंस य प लाइव दिख रहे होंगे

play06:46

आपको अगर मैं इसको कमेंट करता हूं तो

play06:47

डिफॉल्ट य अप्लाई हो रही है राइट अगर मैं

play06:50

इसको रिसेट कर देता हूं यानी कि सबको

play06:53

मार्जिन ंग जीरो कर देता हूं तो ये सारी

play06:55

रिसेट हो गई प्लस य प हम यूज करते हैं

play06:57

बॉक्स साइजिंग

play07:00

बॉक्स सो दैट अगर हम पडि या मार्जिन दे

play07:03

रहे हैं तो हमारा कंटेनर की विड्थ में ही

play07:06

एडजस्ट हो जाए व

play07:07

सारी जो चीज होती है मार्जिन पांग हो गया

play07:11

फिर बॉर्डर हो गया ठीक

play07:13

है अब यहां पर आते हैं लिखते हैं बॉडी

play07:19

बॉडी में क्या करना है हमको यहां प लगानी

play07:22

है फंट फैमिली फंट फैमिली अभी के लिए हम

play07:25

ससफ यूज करेंगे बाद में हम उसको अपने

play07:28

अकॉर्डिंग जो भी हमको फट हो उसके अंग चेंज

play07:30

कर लेंगे य

play07:34

राइट

play07:36

और यहां पर

play07:38

कुछ अच्छा ठीक है डायरेक्ट आते डर प हेडर

play07:43

पर हमको क्या करना है

play07:47

की य पर इंस्पेक्ट करता हूं और इसको ले

play07:51

आता हूं नीचे राइट

play07:53

ता और इसको करता क्लोज और हमको बस चाहिए

play08:00

और हमको चाहिए ठीक है तो अब हमको करना

play08:04

क्या है कि इस नेम को और इस पूरी लिस्ट को

play08:09

साइड बाय साइड दिखाना है नेम और लिस्ट तो

play08:12

उसके लिए हम क्या यूज करेंगे डिस्प्ले

play08:15

फ्लेक्स आ गया साइड में और स्पेस के लिए

play08:19

हम क्या करेंगे जस्टिफाई कंटेंट बीच में

play08:22

जितना फुल वि लेगा और ये लेफ्ट में जाएगा

play08:26

और ये राइट में जाएगा अगर आप स्पेस बिटवीन

play08:29

यूज करते

play08:29

स्पेस बिटवीन मतलब उसके बीच में जितने भी

play08:32

स्पेस है वो डिवाइड हो

play08:36

जाएगी

play08:38

और फिर अब इस लिस्ट के अंदर जितने भी

play08:43

एलिमेंट है उनको भी हमको साइड में दिखाना

play08:46

है तो उसके लिए हम यूज करेंगे डर के अंदर

play08:49

जो यल है उसको हम करेंगे डिस्प्ले फलेक्स

play08:53

तो य भी आ गया अब एक चीज और है

play08:57

य जो लिस्ट स्टाइल है इसका लिस्ट स्टाइल

play09:01

करेंगे न डॉट हटाने के लिए राइट डॉट हट

play09:04

गया हमारा

play09:06

और इनके बीच की जो स्पेसिंग है यहां पे

play09:09

अभी स्पेस नहीं दिख रहा है स्पेसिंग के

play09:10

लिए हम यूज करते हैं गैप इनके बीच में गैप

play09:13

कितना होना चाहिए हम मैं अभी के लिए रखता

play09:15

हूं 10 पिक्सल तो ये आ गया गैप और यहां पे

play09:19

मैं क्या करूंगा बाय

play09:21

डिफॉल्ट जो ए टैग है उसम जो ये अंडरलाइन आ

play09:25

रही है उसको हटाने के लिए हम लगाएंगे

play09:27

टेक्स्ट डेकोरेशन नन

play09:30

तोय पेज में जितने भी लिंक रहेंगे उन सभी

play09:32

से अंडरलाइन हट जाएगा

play09:37

राट ठीक है य हो गई अब हमको क्या करना है

play09:42

अच्छा एक चीज य पर और करनी थी अभी य चीज

play09:46

जो अलाइन रखनी है ट द पेज उसके लिए हम

play09:49

कंटेनर बनाते हैं ठीक है उसके लिए हम

play09:52

रखेंगे

play09:53

[संगीत]

play09:57

कंटेनर क्लास ने

play09:59

कंटेनर हालाकि आप पैंग से भी यूज कर सकते

play10:01

हो बट कंटेनर एक रपर होना चाहिए ठीक है

play10:06

दोन पशन आप पडि से भी यूज कर सकते हो और

play10:08

कंटेनर यूज करके भी कर सकते हो अभी क्या

play10:10

है कि हम हेडर के अंदर चेक करहे थे बट अभी

play10:13

हमारा कंटेनर के अंदर य चीज आ गई है तो अब

play10:16

जो हम पहले हेडर पर फ्लेक्स लगाते थे अब

play10:19

हमको यह जो दो चीज साइड बा साइड करनी है व

play10:22

कंटेनर के अंदर करनी है लेफ्ट और राइट में

play10:25

तो अब हम हेडर प लगा के डि फलेक्स वो

play10:27

लगाएंगे इसके अंदर जो कंटेनर है उसके

play10:32

अंदर राइट ये फिर से वसा हो गया ठीक अब

play10:37

यहां पर क्या करना

play10:38

है मुझे हेडर को बैकग्राउंड देना है अी

play10:42

ब्लैक मोस्टली ब्लैक सही लगता है तो ब्लैक

play10:47

रख लेते हैं राइट अब यहां पे दो चीज आती

play10:49

है बैकग्राउंड बैकग्राउंड कलर और

play10:51

बैकग्राउंड बैकग्राउंड कलर स्पेशली केवल

play10:55

बैकग्राउंड कलर के लिए यूज होता है राइट

play10:57

और बैकग्राउंड जो होता है

play10:59

वहां पर आप बैकग्राउंड इमेज भी लगा सकते

play11:01

हो लीनियर भी लगा सकते हो और नॉर्मल इमेज

play11:05

कलर भी दे सकते हो राइट य डिफरेंस होता है

play11:08

इसम बैकग्राउंड कलर और बैकग्राउंड में

play11:10

यहां पर मैं अभी ब्लैक रखता हूं

play11:12

बैकग्राउंड ब्लैक अभी अच्छा य डॉट नहीं टग

play11:17

है ठीक है एक चीज और की हेडर के

play11:22

अंदर जो इसका कलर है इसको रखते हैं वाइट

play11:29

अच्छा अब य क्या करता है जो कलर

play11:33

है इसका जो कलर प्रॉपर्टी है वह ए टक पर

play11:37

लगा हुआ है राइट इसको ड करने के लिए हमको

play11:40

क्या करना पड़ेगा हेडर के अंदर जो है उसका

play11:42

कलर वाइड कर देना है अब हमें कु चाहिए य

play11:45

पडि हेडर के अंदर जाते हैं य पर कुछ लगाते

play11:48

हैं पैंग पैंग में देता हूं 10 पिक्सेल

play11:51

ऊपर और नीचे से और लेफ्ट और राइट से रहेगा

play11:54

पडि

play11:56

जीरो और

play11:59

जो कंटेनर है कंटेनर हमारा ग्लोबल सीस

play12:02

रहेगा क्योंकि व सभी सेक्शन प अपलाई होगा

play12:05

तो कंटेनर के लिए यहां पर कुछ सीस लगाते

play12:08

हैं इसकी जो मैक्स विथ होगी मैक्स विथ

play12:13

परसेंटेज भी रख सकते हो फिक्स रख सकते मैं

play12:16

य पर रखता

play12:19

हूं ठीक है अभी कुछ अभी के लिए मैं रखता

play12:24

हूं दो नहीं होगा

play12:29

मैं अभी रखता हूं 90 पर और यहां पर रखते

play12:34

हैं मार्जिन टो तो यह सेंटर में आ

play12:40

जाएगा अभी यह चीज इतनी रेडी हो गई राइट तो

play12:44

हमारा हेडर एक्चुअली रेडी मैं फल दिखा

play12:47

देता हूं तो अभी हमारा हेडर ऐसा दिख रहा

play12:50

है अब हमको क्या करना है कि पहले हम पूरा

play12:52

हेडर कंप्लीट करेंगे राइट

play13:00

इसको मिनिमाइज कर लेता हूं अभी हम पूरा

play13:02

हेडर पर फोकस कर रहे हैं अब हमारा य नियम

play13:06

जो है व थोड़ा 12 इसका बोल्ड होना चाहिए

play13:09

तो हम यहां पर क्या करेंगे अच्छा इसको

play13:10

क्लास दे देते हैं की क्लास

play13:15

नेम यहां पर दे देते

play13:19

हैं

play13:21

ब्रांड या

play13:24

फिर नेम दे देते हो ठीक है यहां पे रखता

play13:29

हूं मैं

play13:31

डॉट नेम इसका जो फट ट रहेगा वो रखते हम

play13:38

600 अय थोड़ा बोल्ड है और यह हल्के से

play13:41

बोल्ड म नर्मल फट इसका का

play13:45

और ठीक

play13:51

है यह हमारा हेडर कंप्लीट हुआ राट अभी

play13:54

कंप्लीट नहीं हुआ है मतलब एक बेसिक ले

play13:57

इसका रेडी हो गया अ

play13:59

नहीं है राट अगर मैं इसको मोबाइल डिवाइस

play14:02

में दिखाऊ तो य य पर सही से नहीं आएगा राट

play14:05

य रहा है मोबाइल में क्या होगा कि य पर

play14:09

हमारा हैमबर्गर मन होगा उसे क्लिक प य

play14:11

सारे लिंक दिखेंगे य से साइड बार

play14:14

से

play14:18

ठीक

play14:21

और ठीक है र की अब इसको रिस्प बनाते ट

play14:26

रिस्प के लिए हमको क्या चाहिए

play14:30

यहां पर क्या करना पड़ेगा एक यहां पर

play14:34

मीडिया क्वेरी लिखते हैं एट मीडिया या फिर

play14:37

चलो अभी डेस्कटॉप बनाते हैं राइट अभी

play14:39

केलिए डेस्कटॉप फोकस करते

play14:42

हैं यहां पे मैं डिवाइड कर देता हूं

play14:46

सीएसएस यह रहेगा कमेंट कमेंट हम ऐसे करते

play14:49

हैं सीएसएस में यह रहेगा हेडर का सीएसएस

play14:53

एडर

play14:54

सीएसएस और यहां पर लगा देते हैं डर सीएसएस

play14:58

एंड

play15:00

य पूरा हेडर का ससस हो गया अब हम आते हैं

play15:05

दूसरे सेक्शन पर राइट मेन के अंदर आते हैं

play15:09

और यहां पर लेते हैं

play15:13

सेक्शन और इसका क्लास देते हैं

play15:19

बैनर अ इस बैनर में हमको करना क्या है और

play15:24

उसका अलाइन मेंट सही करने के लिए उसके

play15:26

अंदर हम लेंगे कंटेनर ू क्लास नेम

play15:31

कंटेनर और यहां पर हमको

play15:35

दो दो चीजें नहीं हमारे पास जो बैनर है हम

play15:40

य चाहते कि हमारा लेफ्ट में इमेज दिखे और

play15:43

राइट में हमारा उसके कुछ इंफो हो रहे उसके

play15:46

बारे में आपके बारे में आपकी जो इमेज है

play15:48

उसके राइट साइड में कुछ आपके बारे में

play15:50

डिटेल्स लिखे तो उसके लिए हम क्या करेंगे

play15:53

यहां पर फर्स्ट ट जो रहेगा वो रहेगा इमेज

play15:55

टैग यहां पर हम सरसी भी पास करेंगे और जो

play15:59

राइट वाला कंटेंट रहेगा उसको उसमें क्या

play16:01

रहेगा एक हमारी हेडिंग

play16:03

रहेगी हेडिंग में जैसे आपका नेम आ जाएगा

play16:07

जैसे मेरा नाम यहां पर आशीष कुमार है तो

play16:10

मैं यहां पर आशीष लिखता हूं

play16:14

आशीष और यहां पर कुछ इंफो रहेगा मैं य पर

play16:18

रैंडम टेस्ट लेता हू

play16:19

न ठीक है और इमेज के लिए मैं एक इमेज

play16:25

लेलेता हूं य से मेरे फोल्डर में पड़ा

play16:27

होगा डाउनलोड में जाते हैं यहां पर मेरा

play16:31

एक इमेज पड़ा होगा आस पोर्टफोलियो इसको

play16:35

मैं कॉपी करता हूं और मैं इस पेस्ट कर

play16:38

देता

play16:39

हूं कंट्रोल भी करके पेस्ट कर देता हूं

play16:44

राइट और अब मैं क्या करता हूं यहां पर

play16:47

इसको लिंक कर देता हूं डॉट स्ल और ये य प

play16:51

होगा लिंक और ब्राउजर को भी खोले तो अच्छा

play16:56

अभी इसकी इमेज की साइज जो है काफी बड़ी है

play16:59

तो यहां पे कुछ साइज हमको डिफाइन करना

play17:01

पड़ेगा तो यहां पे मैं रखता

play17:05

हूं विड्थ रख लेता हूं

play17:09

300

play17:11

राइट तो अभी ये ऐसा दिख रहा है अब हमको

play17:15

क्या करना है कि इमेज को लेफ्ट में दिखाना

play17:17

है और कंटेंट हमारा जो है वो राइट साइड

play17:19

में जाना चाहिए तो ये चीज हम कैसे करते

play17:22

हैं अगर किसी दो चीजें हैं आपके पास किसी

play17:24

कंटेनर में और एक को लेफ्ट और मतलब कि

play17:27

कंटेंट आपको साइड बाय साइड दिखाना है तो

play17:29

वहां पर उसके पैरेंट में हम क्या करते हैं

play17:31

जो यह कंटेनर है इसके पैरेंट प अच्छा

play17:35

इसमें य हमको दो चाइड बनाने पड़ेंगे य

play17:37

हमारे लेफ्ट में जाएगा और यह पूरा राइट

play17:38

में जाएगा तो इसको एक ड में रप करना

play17:41

पड़ेगा ड क्लास नेम इसको देते हैं राइट या

play17:45

फिर दे देते हैं

play17:47

इंफो ठीक इसको फॉर्मेट करते

play17:51

हैं और या फिर य पर एक चीज और कर सकते हैं

play17:55

यहां पर जाते हैं

play17:58

यहां पे कुछ सेटिंग चेंज कर लेते हैं

play18:00

फॉर्मेट ऑटोमेटिक सेव हो जाए फॉर्मेट न

play18:02

सेव य प सेटिंग में जाते हैं य प सर्च

play18:06

करते हैं फॉर्मेट और यहां पे फॉर्मेट ऑन

play18:09

सेव तो ये ऑटोमेटिक जब भी हम सेव करेंगे

play18:11

तोय ऑटोमेटिक फॉर्मेट हो

play18:13

जाएगा

play18:16

ठीक अब ये चीज आ गई अब हमको क्या करना है

play18:19

कि बैनर के कंटेनर प हमको लगाना है

play18:21

डिस्प्ले फ्लेक्स यहां पे कमेंट कर लेते

play18:26

हैं बैनर सीएसएस अब हमको क्या करना पड़ेगा

play18:31

डॉट बैंड के अंदर डॉट कंटेनर जो है उसके

play18:33

ऊपर लगाना है हमको डिस्प्ले फलेक्स य

play18:37

हमारा साइड बाय साइड आ गया

play18:41

राइट

play18:43

और पप देना कुछ कुछ गैप होना चाहिए या फिर

play18:48

गप भी देते हैं गप देते 50 पिक्सल तो य पर

play18:52

गप न

play18:54

गा

play18:56

राट और अगर मैं इसको दिखा

play19:00

इना ठीक इमेज काफी बड़ी है तो इसके लिए हम

play19:04

क्या करेंगे य कंटेंट कुछ बढ़ाएंगे बटन भी

play19:07

लगाएंगे तो कंटेंट उसके अंग एडजस्ट हो

play19:11

जाएगा एकज कर सकते हैं की यहां पर जो

play19:17

इमेज जो बनर इमेज है डॉट बनर

play19:21

आईजी इसकी जो हाइट है व हम रखते हैं 100

play19:25

पर और यहां से

play19:29

इसको हटा लेते हैं

play19:34

राट और यह अभी काफी ड़ आ

play19:39

रही तो यहां पर क्या करना पड़ेगा हमको

play19:43

हाइट सेट करनी पड़ेगी हाइट अभी 100 पर आ

play19:46

रही हैक बैनर की जो हाइट है व सेट है नहीं

play19:50

तो यह क्या करेगा मैक्सिमम कंटेंट लेगा और

play19:53

मैक्सिमम कंटेंट किसका रहेगा जो इस वाले

play19:56

डी में सबसे बड़ा

play19:59

क्यक इमज बड़ी है तोसी का हाइट व लेगा तो

play20:03

अब हमको यहां पर क्या करना है या तो य

play20:05

फिक्स हा दे सकते हैं अभी के लिए राट

play20:08

हालाकि फिक्स सही नहीं होता है देना तो

play20:10

अभी केलिए 300 पिक्सल देता

play20:14

हूं य पर आ

play20:19

गया अब य पर हमको क्या चाहिए की कुछ पंग

play20:22

भी होनी चाहिए य तो मैं क्या करता हूं

play20:25

हेडर जो

play20:27

है जो बैनर है उसके ऊपर देते हैं हम कुछ

play20:32

पडि पडि दे देते हैं हम 100 पिक्सल ऊपर और

play20:36

नीचे से और लेफ्ट राइट से जीरो राइट अभी

play20:39

आप देखोगे तो यहां प पडि पैंग कुछ ज्यादा

play20:41

दिख रही है तो मैं इसको कर देता हूं

play20:46

80 और यहां पर फंट साइज हमको बढ़ानी

play20:49

पड़ेगी तो फंट साइज बाय डिफॉल्ट सभी में

play20:53

टैग यूज होने वाला हेडिंग के लिए तो मैं

play20:56

क्या करता हूं ग्लोबली मैं हेडिंग डिफाइन

play20:58

कर लेता हूं यहां पे

play21:00

और या फिर एक क्लास दे देता हूं हेडिंग के

play21:03

लिए डॉट

play21:06

हेडिंग और इसकी फंट साइज मैं यहां पे दे

play21:09

देता हूं अ 60

play21:14

पिक्सल और इसको मैं क्लास दे दूंगा या फिर

play21:18

s2 पे डायरेक्ट लगा सकते हो आप मैं अभी के

play21:21

लिए s2 पे दे देता हूं ताकि हमको क्लास

play21:23

लगाने की नीड ना पड़े मैं यहां पे

play21:25

डायरेक्ट s2 प दे देता हूं राइट और ये

play21:31

है

Rate This

5.0 / 5 (0 votes)

Related Tags
Web DevelopmentPortfolio GuideHTML TutorialCSS TricksLive ServerResponsive DesignWeb CodingLayout StructureCode FormattingUI Design