Я нахожусь в Bootcamp FS, и одна из лабораторий, которые я делаю, не приводит мне правильный размер.
Это то, на что должен выглядеть сайт. Должен быть
это то, что я получаю.
мои результаты < /p>
следовали за инструкциями до t внизу.
Инструкции < /p> Вот мой код HTML и CSS < /p>
Customer Information
First Name
Last Name
Email Address
Phone Number
Payment Information
Card Name
< /code>
body, fieldset, input, legend, label, footer {
margin: 0;
padding: 0;
}
/* Style for body specifies a background color */
body {
background: linear-gradient(to top right, #fff 0%, #6699ff 100%) no-repeat fixed center;
font-family: Geneva, Arial, sans-serif;
}
/* Style for the container element */
#container {
width: 90%;
margin: 0 auto;
}
/* Style rules for form elements */
fieldset, input {
margin-bottom: 2%;
}
fieldset legend {
font-size: 1.25em;
font-weight: bold;
}
label {
display: block;
padding-top: 3%;
}
.btn {
border: none;
margin: 0 auto;
display: block;
padding: 5%;
background-color: #003399;
font-size: 1.25em;
border-radius: 10px;
color: white;
}
< /code>
Based on the instructions, are the Css Style rules correct to get the result of the first picture.
I have narrowed it down to being the style rules.
Why am i getting such a wide fieldset box instead of the first example
The school is using Cengage, Not the biggest fan, So not sure if there is issues with the lab software. All I know something ain't working, me included.
Thanks, in advance.
Подробнее здесь: https://stackoverflow.com/questions/793 ... orrect-css
Размеры не верны CSS [закрыто] ⇐ CSS
Разбираемся в CSS
1738095658
Anonymous
Я нахожусь в Bootcamp FS, и одна из лабораторий, которые я делаю, не приводит мне правильный размер.
Это то, на что должен выглядеть сайт. Должен быть
это то, что я получаю.
мои результаты < /p>
следовали за инструкциями до t внизу.
Инструкции < /p> Вот мой код HTML и CSS < /p>
Customer Information
First Name
Last Name
Email Address
Phone Number
Payment Information
Card Name
< /code>
body, fieldset, input, legend, label, footer {
margin: 0;
padding: 0;
}
/* Style for body specifies a background color */
body {
background: linear-gradient(to top right, #fff 0%, #6699ff 100%) no-repeat fixed center;
font-family: Geneva, Arial, sans-serif;
}
/* Style for the container element */
#container {
width: 90%;
margin: 0 auto;
}
/* Style rules for form elements */
fieldset, input {
margin-bottom: 2%;
}
fieldset legend {
font-size: 1.25em;
font-weight: bold;
}
label {
display: block;
padding-top: 3%;
}
.btn {
border: none;
margin: 0 auto;
display: block;
padding: 5%;
background-color: #003399;
font-size: 1.25em;
border-radius: 10px;
color: white;
}
< /code>
Based on the instructions, are the Css Style rules correct to get the result of the first picture.
I have narrowed it down to being the style rules.
Why am i getting such a wide fieldset box instead of the first example
The school is using Cengage, Not the biggest fan, So not sure if there is issues with the lab software. All I know something ain't working, me included.
Thanks, in advance.
Подробнее здесь: [url]https://stackoverflow.com/questions/79395076/sizing-not-correct-css[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия